Skip to content

Commit

Permalink
Changed evidence autocompleted to be case-insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
fatzombi committed May 17, 2024
1 parent 7a5eca1 commit ba27375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghostwriter/static/js/tinymce/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
columns: 1,
fetch: function (pattern) {
var matchedChars = evidenceFiles.filter(function (quote) {
return quote.text.indexOf(pattern) !== -1;
return quote.text.toLowerCase().includes(pattern.toLowerCase());
});
return new tinymce.util.Promise(function (resolve) {
var results = matchedChars.map(function (quote) {
Expand Down

0 comments on commit ba27375

Please sign in to comment.