Skip to content

Commit 8513dca

Browse files
authored
Merge pull request #1915 from divyanx/develop
Fixed #1857 - In Find, "only whole words" also finds postfixes
2 parents 4c9097b + 953dc33 commit 8513dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/utils/codemirror-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function parseQuery(query, state) {
293293
query = query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
294294
}
295295
if (state.wholeWord) {
296-
query += '\\b';
296+
query = '\\b' + query + '\\b';
297297
}
298298
}
299299

0 commit comments

Comments
 (0)