Comparing version 3.3.1 to 3.3.2
@@ -10,7 +10,7 @@ "use strict"; | ||
* All non-escaped special characters. | ||
* Posix: ()*?[\]{|}, !+@ before (, ! at the beginning, \\ before non-special characters. | ||
* Windows: (){}, !+@ before (, ! at the beginning. | ||
* Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters. | ||
* Windows: (){}[], !+@ before (, ! at the beginning. | ||
*/ | ||
const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; | ||
const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g; | ||
const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g; | ||
/** | ||
@@ -26,3 +26,3 @@ * The device path (\\.\ or \\?\). | ||
*/ | ||
const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g; | ||
const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g; | ||
/** | ||
@@ -29,0 +29,0 @@ * Designed to work only with simple paths: `dir\\file`. |
@@ -137,3 +137,3 @@ "use strict"; | ||
function expandBraceExpansion(pattern) { | ||
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true }); | ||
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true }); | ||
/** | ||
@@ -140,0 +140,0 @@ * Sort the patterns by length so that the same depth patterns are processed side by side. |
{ | ||
"name": "fast-glob", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "It's a very fast and efficient glob library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -275,6 +275,6 @@ # fast-glob | ||
* Windows: | ||
* `(){}` | ||
* `(){}[]` | ||
* `!` at the beginning of line; | ||
* `@+!` before the opening parenthesis; | ||
* Characters like `*?|[]` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped; | ||
* Characters like `*?|` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped; | ||
@@ -298,3 +298,3 @@ ```js | ||
* Posix. Works similarly to the `fg.posix.escapePath` method. | ||
* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}`). | ||
* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}[]`). | ||
@@ -301,0 +301,0 @@ ```js |
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
96746