cspell-trie-lib
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -0,1 +1,17 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## [4.2.2](https://github.com/streetsidesoftware/cspell/compare/cspell-trie-lib@4.2.1...cspell-trie-lib@4.2.2) (2020-11-01) | ||
### Bug Fixes | ||
* address code QL warnings ([#402](https://github.com/streetsidesoftware/cspell/issues/402)) ([1fe31e0](https://github.com/streetsidesoftware/cspell/commit/1fe31e08e02c66174d094c0b403eec11fc6bec4d)) | ||
# Release Notes | ||
@@ -2,0 +18,0 @@ |
@@ -12,6 +12,6 @@ "use strict"; | ||
} | ||
const regExpEscapeChars = /([\[\]\\,:{}*])/; | ||
const regExpEscapeChars = /([\[\]\\,:{}*])/g; | ||
const regExTrailingComma = /,(\}|\n)/g; | ||
function escapeChar(char) { | ||
return char.replace(regExpEscapeChars, '\\$1'); | ||
return char.replace(regExpEscapeChars, '\\$1'); // lgtm[js/incomplete-sanitization] | ||
} | ||
@@ -18,0 +18,0 @@ function trieToExportString(node, base) { |
@@ -230,5 +230,10 @@ "use strict"; | ||
exports.suggestionCollector = suggestionCollector; | ||
/** | ||
* | ||
* @param text verbatim text to be inserted into a regexp | ||
* @returns text that can be used in a regexp. | ||
*/ | ||
function regexQuote(text) { | ||
return text.replace(/[\[\]\-+(){},|*.]/g, '\\$1'); | ||
return text.replace(/[\[\]\-+(){},|*.\\]/g, '\\$1'); | ||
} | ||
//# sourceMappingURL=suggest.js.map |
{ | ||
"name": "cspell-trie-lib", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Trie Data Structure to support cspell.", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "d1b8d25aa3713b481094d1f1063fc9d031674672" | ||
"gitHead": "a114e7769ddac7f85f6c5837cd7b0f62a9baae87" | ||
} |
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
81133
2152