summaryrefslogtreecommitdiff
path: root/node_modules/fast-glob
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/fast-glob')
-rw-r--r--node_modules/fast-glob/README.md6
-rw-r--r--node_modules/fast-glob/out/utils/path.js8
-rw-r--r--node_modules/fast-glob/out/utils/pattern.js2
-rw-r--r--node_modules/fast-glob/package.json2
4 files changed, 9 insertions, 9 deletions
diff --git a/node_modules/fast-glob/README.md b/node_modules/fast-glob/README.md
index be608742..62d5cb7a 100644
--- a/node_modules/fast-glob/README.md
+++ b/node_modules/fast-glob/README.md
@@ -272,10 +272,10 @@ Returns the path with escaped special characters depending on the platform.
* `@+!` before the opening parenthesis;
* `\\` before non-special characters;
* 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;
```js
fg.escapePath('!abc');
@@ -294,7 +294,7 @@ fg.win32.escapePath('C:\\Program Files (x86)\\**\\*');
Converts a path to a pattern depending on the platform, including special character escaping.
* 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 (`!()+@{}[]`).
```js
fg.convertPathToPattern('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac';
diff --git a/node_modules/fast-glob/out/utils/path.js b/node_modules/fast-glob/out/utils/path.js
index 97a7b492..7b53b397 100644
--- a/node_modules/fast-glob/out/utils/path.js
+++ b/node_modules/fast-glob/out/utils/path.js
@@ -7,11 +7,11 @@ const IS_WINDOWS_PLATFORM = os.platform() === 'win32';
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
/**
* 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;
/**
* The device path (\\.\ or \\?\).
* https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths
@@ -22,7 +22,7 @@ const DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
* Windows: !()+@{}
* https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
*/
-const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
+const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
/**
* Designed to work only with simple paths: `dir\\file`.
*/
diff --git a/node_modules/fast-glob/out/utils/pattern.js b/node_modules/fast-glob/out/utils/pattern.js
index 0f5e9ca7..d7d4e91b 100644
--- a/node_modules/fast-glob/out/utils/pattern.js
+++ b/node_modules/fast-glob/out/utils/pattern.js
@@ -134,7 +134,7 @@ function expandPatternsWithBraceExpansion(patterns) {
}
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
function expandBraceExpansion(pattern) {
- const patterns = micromatch.braces(pattern, { expand: true, nodupes: true });
+ const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
/**
* Sort the patterns by length so that the same depth patterns are processed side by side.
* `a/{b,}/{c,}/*` – `['a///*', 'a/b//*', 'a//c/*', 'a/b/c/*']`
diff --git a/node_modules/fast-glob/package.json b/node_modules/fast-glob/package.json
index bbcc0eab..770cc6e5 100644
--- a/node_modules/fast-glob/package.json
+++ b/node_modules/fast-glob/package.json
@@ -1,6 +1,6 @@
{
"name": "fast-glob",
- "version": "3.3.1",
+ "version": "3.3.2",
"description": "It's a very fast and efficient glob library for Node.js",
"license": "MIT",
"repository": "mrmlnc/fast-glob",