diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2019-10-02 18:59:27 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-02 13:59:27 -0400 |
commit | 2f90225c89926932a34eb40758e2af0d1742e1f8 (patch) | |
tree | 21466759c5a9ff26cff1397736fc6a10ff9880fd /fs/path | |
parent | aca225330521840d63835bb1ba27ce13a7f65093 (diff) |
Implement expandGlob() and expandGlobSync() (denoland/deno_std#617)
fs/glob.ts:
- Improve prototypes for expandGlob() and expandGlobSync() from denoland/deno_std#604.
- Rename glob() to globToRegExp().
- Add normalizeGlob() and joinGlobs().
- Extract GlobToRegExpOptions from GlobOptions, remove the strict
and filepath options.
fs/globrex.ts:
- Add GlobrexOptions.
fs/path/constants.ts:
- Add SEP_PATTERN.
fs/walk.ts:
- Add WalkOptions::includeFiles
- Default WalkOptions::includeDirs to true.
- Don't traverse directories matching a skip pattern.
- Remove walkSync()'s default root value.
prettier:
- Refactor to use expandGlob().
testing:
- Make findTestModules() an async generator.
Original: https://github.com/denoland/deno_std/commit/8c90bd9d0b1c78b023d36462ffaa9446ef22490c
Diffstat (limited to 'fs/path')
-rw-r--r-- | fs/path/constants.ts | 1 |
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 ? /[\\/]+/ : /\/+/; |