Skip to content

Commit aaf244f

Browse files
jalandisklaudiosinani
authored andcommitted
Improved search functionality. Fixes #110 (#111)
Normalize case before searching. (#111)
1 parent 1c60acd commit aaf244f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/taskbook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Taskbook {
143143
let result;
144144

145145
terms.forEach((term, key, arr) => {
146-
if (string.toLowerCase().indexOf(term) > -1) {
146+
if (string.toLocaleLowerCase().indexOf(term.toLocaleLowerCase()) > -1) {
147147
result = (key === arr.length - 1) ? string : '';
148148
}
149149
});

0 commit comments

Comments
 (0)