Opened 10 years ago
Last modified 10 years ago
#12760 confirmed Bug
Match whole word option does not find words adjacent to special characters
Reported by: | Rick Schnorenberg | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
Steps to Reproduce
- Open the editor full featured demo page
- Paste in this test text:
test` test~ test! test@ test# test$ test% test^ test& test* test( test) test- test_ test= test+ test[ test{ test] test} test\ test| test; test: test' test" test, test< test. test> test/ test?
- Open the find dialog
- Enter test as the search term
- Check the Match whole word checkbox
- Click find repeatedly
Expected Behavior
I don't think there is any consensus to exactly which characters should or should not delimit words but the main characters we are concerned with are parentheses (), square brackets [], and the slash / which are used often to enclose or connect words but without making them compound words with the other content around the symbol.
Word 2013 finds every instance of the word in this test with Find whole words only checked, Internet Explorer finds all but the one next to a single quote '
Actual Behavior
Only the instances of test that are adjacent to quotes and common sentence separator characters are found.
I think this is correct. CKEditor should find whole words or at least work the same way as word.
I have been able to reproduce this issue from CKEditor 3.0.