From d35fb20e847b7ece909239000873b07c59e86872 Mon Sep 17 00:00:00 2001 From: Akshay Anand Date: Sat, 2 Mar 2019 22:46:14 -0500 Subject: [PATCH] fixes #510 and fixes #466 --- dev/App.vue | 2 +- src/components/types/default.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/App.vue b/dev/App.vue index c3ac7cf5..91a53046 100644 --- a/dev/App.vue +++ b/dev/App.vue @@ -142,7 +142,7 @@ export default { }, { id: 5, - name: 'Dan', + name: '193.23', age: 20, createdAt: null, score: 0.03343, diff --git a/src/components/types/default.js b/src/components/types/default.js index af18c335..2c1d0679 100644 --- a/src/components/types/default.js +++ b/src/components/types/default.js @@ -15,11 +15,11 @@ export default { // row value const rowValue = skipDiacritics ? String(rowval).toLowerCase() - : diacriticless(String(rowval).toLowerCase()); + : diacriticless(escapeRegExp(String(rowval)).toLowerCase()); // search term const searchTerm = skipDiacritics - ? escapeRegExp(filter).toLowerCase() + ? filter.toLowerCase() : diacriticless(escapeRegExp(filter).toLowerCase()); // comparison