I am working on a custom search/replace function, and I want to utilize the wholeWord feature. However, it fails to identify certain words. Is there a bug, or am I doing something wrong?
Here are two examples:
In both examples, the word “Acme” is not identified at its current position. It happens with other words too, typically on the second line, in longer lines. If I enter the word at different positions in text, those can be found. Also, toggling on the regex and match case works for highlight (example 1) but not search (example 2).
Any help is appreciated.