summaryrefslogtreecommitdiff
path: root/fs/path/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/path/constants.ts')
-rw-r--r--fs/path/constants.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/path/constants.ts b/fs/path/constants.ts
index 55851f8cc..1e1eeeb49 100644
--- a/fs/path/constants.ts
+++ b/fs/path/constants.ts
@@ -51,3 +51,4 @@ export const CHAR_9 = 57; /* 9 */
export const isWindows = build.os === "win";
export const EOL = isWindows ? "\r\n" : "\n";
export const SEP = isWindows ? "\\" : "/";
+export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/;