@babel/types
Advanced tools
Comparing version 7.25.0 to 7.25.2
@@ -54,3 +54,3 @@ "use strict"; | ||
const pattern = value.source; | ||
const flags = /\/([a-z]+|)$/.exec(value.toString())[1]; | ||
const flags = /\/([a-z]*)$/.exec(value.toString())[1]; | ||
return (0, _index.regExpLiteral)(pattern, flags); | ||
@@ -57,0 +57,0 @@ } |
@@ -25,6 +25,6 @@ "use strict"; | ||
if (!isFirstLine) { | ||
trimmedLine = trimmedLine.replace(/^[ ]+/, ""); | ||
trimmedLine = trimmedLine.replace(/^ +/, ""); | ||
} | ||
if (!isLastLine) { | ||
trimmedLine = trimmedLine.replace(/[ ]+$/, ""); | ||
trimmedLine = trimmedLine.replace(/ +$/, ""); | ||
} | ||
@@ -31,0 +31,0 @@ if (trimmedLine) { |
{ | ||
"name": "@babel/types", | ||
"version": "7.25.0", | ||
"version": "7.25.2", | ||
"description": "Babel Types is a Lodash-esque utility library for AST nodes", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
Sorry, the diff of this file is not supported yet
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
2424804