From 2f90225c89926932a34eb40758e2af0d1742e1f8 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 2 Oct 2019 18:59:27 +0100 Subject: 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 --- fs/path/constants.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/path') 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 ? /[\\/]+/ : /\/+/; -- cgit v1.2.3