Socket
Socket
Sign inDemoInstall

unicoderegexp

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

lib/unicodeRegExp.js

@@ -47,3 +47,3 @@ (function (root, factory) {

return new RegExp(unicodeSetId.replace(unicodeRegExp.unicodePackageNameRegExp, function ($0, negated, packageName) {
var characters = unicodePackageNamesMapping[packageName].source;
var characters = unicodePackageNamesMapping[packageName].source.replace(/^\[|\]$/g, '');
return '[' + (negated ? '^' + characters : characters) + ']';

@@ -50,0 +50,0 @@ }));

@@ -16,3 +16,3 @@ {

},
"version": "0.4.0",
"version": "0.4.1",
"dependencies": {},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -159,3 +159,3 @@ /*global describe,it*/

expect.addAssertion('[not] to be expanded to character class satisfying', function (expect, subject, value) {
expect(unicodeRegExp.expandCldrUnicodeSetIdToCharacterClass(subject).source, 'to equal', '[' + (value[1] ? '^' : '') + value[0].source + ']');
expect(unicodeRegExp.expandCldrUnicodeSetIdToCharacterClass(subject).source, 'to equal', '[' + (value[1] ? '^' : '') + value[0].source.replace(/^\[|\]$/g, '') + ']');
});

@@ -162,0 +162,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc