Skip to content

Commit

Permalink
Improved search functionality. Fixes #110 (#111)
Browse files Browse the repository at this point in the history
Normalize case before searching. (#111)
  • Loading branch information
jalandis authored and klaudiosinani committed Jan 22, 2019
1 parent 1c60acd commit aaf244f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/taskbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class Taskbook {
let result;

terms.forEach((term, key, arr) => {
if (string.toLowerCase().indexOf(term) > -1) {
if (string.toLocaleLowerCase().indexOf(term.toLocaleLowerCase()) > -1) {
result = (key === arr.length - 1) ? string : '';
}
});
Expand Down

0 comments on commit aaf244f

Please sign in to comment.