@use-ui/bootstrap3
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -12,3 +12,3 @@ "use strict"; | ||
} | ||
var parts = s.split(new RegExp(term, "i")); | ||
var parts = s.split(new RegExp(escapeRegex(term), "i")); | ||
if (parts.length == 1) | ||
@@ -33,2 +33,5 @@ return parts[0]; | ||
exports.highlight = highlight; | ||
function escapeRegex(string) { | ||
return string.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); | ||
} | ||
function getChildrenText(children) { | ||
@@ -35,0 +38,0 @@ var label = ""; |
{ | ||
"name": "@use-ui/bootstrap3", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81324
1715