Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cspell-trie-lib

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-trie-lib - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

16

CHANGELOG.md

@@ -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 @@

4

dist/lib/importExportV1.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc