From 46b9f0b224ade156637d2d480e5a1bfce2f387b3 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Sat, 13 Jul 2024 16:33:50 -0700 Subject: [PATCH] Add strict option to README --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index 66cbc29..dc267b7 100644 --- a/Readme.md +++ b/Readme.md @@ -33,6 +33,7 @@ The `pathToRegexp` function returns a regular expression with `keys` as a proper - **options** _(optional)_ - **sensitive** Regexp will be case sensitive. (default: `false`) - **trailing** Allows optional trailing delimiter to match. (default: `true`) + - **strict** Verify patterns are valid and safe to use. (default: `false`, recommended: `true`) - **end** Match to the end of the string. (default: `true`) - **start** Match from the beginning of the string. (default: `true`) - **loose** Allow the delimiter to be arbitrarily repeated, e.g. `/` or `///`. (default: `true`)