+7
-6
@@ -9,2 +9,3 @@ // A simple implementation of make-array | ||
| const EMPTY = '' | ||
| const SPACE = ' ' | ||
| const ESCAPE = '\\' | ||
@@ -45,6 +46,6 @@ const REGEX_TEST_BLANK_LINE = /^\s+$/ | ||
| // See fixtures #59 | ||
| const cleanRangeBackSlash = slashes => slashes.slice( | ||
| 0, | ||
| parseInt(slashes.length / 2, 10) * 2 | ||
| ) | ||
| const cleanRangeBackSlash = slashes => { | ||
| const {length} = slashes | ||
| return slashes.slice(0, length - length % 2) | ||
| } | ||
@@ -71,3 +72,3 @@ // > If the pattern ends with a slash, | ||
| match => match.indexOf('\\') === 0 | ||
| ? ' ' | ||
| ? SPACE | ||
| : EMPTY | ||
@@ -79,3 +80,3 @@ ], | ||
| /\\\s/g, | ||
| () => ' ' | ||
| () => SPACE | ||
| ], | ||
@@ -82,0 +83,0 @@ |
+5
-3
@@ -15,2 +15,3 @@ "use strict"; | ||
| var EMPTY = ''; | ||
| var SPACE = ' '; | ||
| var ESCAPE = '\\'; | ||
@@ -51,3 +52,4 @@ var REGEX_TEST_BLANK_LINE = /^\s+$/; | ||
| var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) { | ||
| return slashes.slice(0, parseInt(slashes.length / 2, 10) * 2); | ||
| var length = slashes.length; | ||
| return slashes.slice(0, length - length % 2); | ||
| }; // > If the pattern ends with a slash, | ||
@@ -70,6 +72,6 @@ // > it is removed for the purpose of the following description, | ||
| /\\?\s+$/, function (match) { | ||
| return match.indexOf('\\') === 0 ? ' ' : EMPTY; | ||
| return match.indexOf('\\') === 0 ? SPACE : EMPTY; | ||
| }], // replace (\ ) with ' ' | ||
| [/\\\s/g, function () { | ||
| return ' '; | ||
| return SPACE; | ||
| }], // Escape metacharacters | ||
@@ -76,0 +78,0 @@ // which is written down by users but means special for regular expressions. |
+1
-1
| { | ||
| "name": "ignore", | ||
| "version": "5.1.5", | ||
| "version": "5.1.6", | ||
| "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
48765
0.15%970
0.31%