mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
Allow TextSentinel#seems_unpretentious? to accept words joined with dashes or forward slashes. (Issue 1133)
This commit is contained in:
@ -96,6 +96,14 @@ describe TextSentinel do
|
||||
TextSentinel.new("{{$!").should_not be_valid
|
||||
end
|
||||
|
||||
it "does allow a long alphanumeric string joined with slashes" do
|
||||
TextSentinel.new("gdfgdfgdfg/fgdfgdfgdg/dfgdfgdfgd/dfgdfgdfgf", max_word_length: 30).should be_valid
|
||||
end
|
||||
|
||||
it "does allow a long alphanumeric string joined with dashes" do
|
||||
TextSentinel.new("gdfgdfgdfg-fgdfgdfgdg-dfgdfgdfgd-dfgdfgdfgf", max_word_length: 30).should be_valid
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context 'title_sentinel' do
|
||||
|
Reference in New Issue
Block a user