Skip to content

Commit

Permalink
docs(regexp): import escape from most specific place in examples (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna authored Jul 12, 2024
1 parent 7e2746b commit 63128c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regexp/escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const RX_REGEXP_ESCAPE = new RegExp(
*
* @example Usage
* ```ts
* import { escape } from "@std/regexp";
* import { escape } from "@std/regexp/escape";
* import { assertEquals, assertMatch, assertNotMatch } from "@std/assert";
*
* const re = new RegExp(`^${escape(".")}$`, "u");
Expand Down
2 changes: 1 addition & 1 deletion regexp/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* such as escaping text for interpolation into a regexp.
*
* ```ts
* import { escape } from "@std/regexp";
* import { escape } from "@std/regexp/escape";
* import { assertEquals, assertMatch, assertNotMatch } from "@std/assert";
*
* const re = new RegExp(`^${escape(".")}$`, "u");
Expand Down

0 comments on commit 63128c5

Please sign in to comment.