From 9c56c1950286a549e8f46374a6f31483bac29ae8 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 15 Sep 2024 15:29:45 +0200 Subject: [PATCH] chore: update docs --- src/construct.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/construct.ts b/src/construct.ts index 27b52cb..49d285b 100644 --- a/src/construct.ts +++ b/src/construct.ts @@ -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, '$')