Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 15, 2024
1 parent 5c240cd commit 9c56c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function construct(
pattern = pattern
// `\A` is `^` in JavaScript
.replace(/\\A/g, '^')
// `\Z` is `$` in JavaScript
// `\Z` is `(?=\n?$)` in JavaScript
.replace(/\\Z/g, '(?=\\n?$)')
// `\z` is `$` in JavaScript
.replace(/\\z/g, '$')
Expand Down

0 comments on commit 9c56c19

Please sign in to comment.