@clayui/autocomplete
Advanced tools
Comparing version 3.86.1 to 3.87.0
@@ -49,2 +49,3 @@ "use strict"; | ||
var Collection = _core.__NOT_PUBLIC_COLLECTION.Collection; | ||
var ESCAPE_REGEXP = /[.*+?^${}()|[\]\\]/g; | ||
@@ -151,3 +152,3 @@ function Autocomplete(_ref) { | ||
var filterFn = (0, _react.useCallback)(function (itemValue) { | ||
return itemValue.match(new RegExp(value, 'i')) !== null; | ||
return itemValue.match(new RegExp(value.replace(ESCAPE_REGEXP, '\\$&'), 'i')) !== null; | ||
}, [value]); | ||
@@ -154,0 +155,0 @@ var filteredItems = (0, _react.useMemo)(function () { |
{ | ||
"name": "@clayui/autocomplete", | ||
"version": "3.86.1", | ||
"version": "3.87.0", | ||
"description": "ClayAutocomplete component", | ||
@@ -29,7 +29,7 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@clayui/core": "^3.86.1", | ||
"@clayui/drop-down": "^3.86.1", | ||
"@clayui/form": "^3.86.1", | ||
"@clayui/core": "^3.87.0", | ||
"@clayui/drop-down": "^3.87.0", | ||
"@clayui/form": "^3.87.0", | ||
"@clayui/loading-indicator": "^3.60.0", | ||
"@clayui/shared": "^3.86.1", | ||
"@clayui/shared": "^3.87.0", | ||
"fuzzy": "^0.1.3" | ||
@@ -45,3 +45,3 @@ }, | ||
], | ||
"gitHead": "9437a1f6f7c2845824e9b63b8251e6f7f366323f" | ||
"gitHead": "f071126e11f2c0ddeab525b5c14eb83f984f6f37" | ||
} |
Sorry, the diff of this file is not supported yet
94878
1999
Updated@clayui/core@^3.87.0
Updated@clayui/drop-down@^3.87.0
Updated@clayui/form@^3.87.0
Updated@clayui/shared@^3.87.0