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