Skip to content

Commit

Permalink
Merge pull request #77 from czeckd/locale
Browse files Browse the repository at this point in the history
Use toLocaleLowerCase
  • Loading branch information
czeckd authored Mar 21, 2018
2 parents 587d1a7 + 7ceae0f commit 6adb6e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "angular-dual-listbox",
"description": "Angular 4+ component for a dual listbox control.",
"version": "4.6.2",
"version": "4.6.3",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-dual-listbox.git"
Expand Down
6 changes: 3 additions & 3 deletions lib/src/dual-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ export class DualListComponent implements DoCheck, OnChanges {
const filtered = source.list.filter( (item:any) => {
if (Object.prototype.toString.call(item) === '[object Object]') {
if (item._name !== undefined) {
return item._name.toLowerCase().indexOf(source.picker.toLowerCase()) !== -1;
return item._name.toLocaleLowerCase().indexOf(source.picker.toLocaleLowerCase()) !== -1;
} else {
return JSON.stringify(item).toLowerCase().indexOf(source.picker.toLowerCase()) !== -1;
return JSON.stringify(item).toLocaleLowerCase().indexOf(source.picker.toLocaleLowerCase()) !== -1;
}
} else {
return item.toLowerCase().indexOf(source.picker.toLowerCase()) !== -1;
return item.toLocaleLowerCase().indexOf(source.picker.toLocaleLowerCase()) !== -1;
}
});
source.sift = filtered;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-dual-listbox",
"description": "Angular 4+ component for a dual listbox control.",
"version": "4.6.2",
"version": "4.6.3",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-dual-listbox.git"
Expand Down

0 comments on commit 6adb6e7

Please sign in to comment.