From 36fde75d779078118af3b2b6c078bcbfb47b1a0f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 17 May 2020 19:24:39 +0200 Subject: Miscellaneous documentation and spelling improvements (#5527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Extended/updated documentation on code editor setup and plugins. * Moved documentation to the right file. * Fixed spelling errors in documentation and code. * Updated broken links. Co-authored-by: 迷渡 Co-authored-by: AlfieriChou Co-authored-by: Anil Seervi Co-authored-by: Fernando Basso Co-authored-by: József Sallai Co-authored-by: S4ltyGo4t Co-authored-by: Tommy May Co-authored-by: Turbinya Co-authored-by: ᴜɴвʏтᴇ --- std/path/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'std/path') diff --git a/std/path/README.md b/std/path/README.md index a1f3f425d..9a9361f87 100644 --- a/std/path/README.md +++ b/std/path/README.md @@ -5,3 +5,18 @@ Usage: ```ts import * as path from "https://deno.land/std/path/mod.ts"; ``` + +### globToRegExp + +Generate a regex based on glob pattern and options This was meant to be using +the the `fs.walk` function but can be used anywhere else. + +```ts +import { globToRegExp } from "https://deno.land/std/path/glob.ts"; + +globToRegExp("foo/**/*.json", { + flags: "g", + extended: true, + globstar: true, +}); // returns the regex to find all .json files in the folder foo +``` -- cgit v1.2.3