From 45dfa258c8f64f2257c8463bd607cf534c55d137 Mon Sep 17 00:00:00 2001 From: David Czeck Date: Mon, 19 Mar 2018 20:54:20 -0700 Subject: [PATCH 1/2] Use toLocaleLowerCase --- lib/src/dual-list.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/dual-list.component.ts b/lib/src/dual-list.component.ts index 2fd4208..be3bf06 100644 --- a/lib/src/dual-list.component.ts +++ b/lib/src/dual-list.component.ts @@ -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; From 7ceae0f4991b3d00eb93d2ce10c2834f21eaa786 Mon Sep 17 00:00:00 2001 From: David Czeck Date: Mon, 19 Mar 2018 20:55:15 -0700 Subject: [PATCH 2/2] Rev version --- lib/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/package.json b/lib/package.json index 53cfa6c..462c069 100644 --- a/lib/package.json +++ b/lib/package.json @@ -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" diff --git a/package.json b/package.json index dd28d35..883c0db 100644 --- a/package.json +++ b/package.json @@ -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"