Socket
Socket
Sign inDemoInstall

regjsparser

Package Overview
Dependencies
1
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

2

package.json
{
"name": "regjsparser",
"version": "0.6.0",
"version": "0.6.1",
"author": "'Julian Viereck' <julian.viereck@gmail.com>",

@@ -5,0 +5,0 @@ "license": "BSD-2-Clause",

@@ -944,7 +944,19 @@ // regjsparser

// IdentityEscape ::
// SourceCharacter but not c
// [+U] SyntaxCharacter
// [+U] /
// [~U] SourceCharacterIdentityEscape[?N]
// SourceCharacterIdentityEscape[?N] ::
// [~N] SourceCharacter but not c
// [+N] SourceCharacter but not one of c or k
var tmp;
if (lookahead() !== 'c') {
var l = lookahead();
if (
(hasUnicodeFlag && /[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(l)) ||
(!hasUnicodeFlag && l !== "c")
) {
if (l === "k" && features.lookbehind) {
return null;
}
tmp = incr();

@@ -951,0 +963,0 @@ return createEscaped('identifier', tmp.charCodeAt(0), tmp, 1);

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