summaryrefslogtreecommitdiff
path: root/fs/glob.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/glob.ts')
-rw-r--r--fs/glob.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/glob.ts b/fs/glob.ts
index 8d322b761..506d4012c 100644
--- a/fs/glob.ts
+++ b/fs/glob.ts
@@ -47,6 +47,7 @@ export function glob(glob: string, options: GlobOptions = {}): RegExp {
/** Test whether the given string is a glob */
export function isGlob(str: string): boolean {
const chars: Record<string, string> = { "{": "}", "(": ")", "[": "]" };
+ /* eslint-disable-next-line max-len */
const regex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
if (str === "") {