From 981a9c87e10316b7a2c9afc1e9aade32d704b0b9 Mon Sep 17 00:00:00 2001 From: Kang Hidro Date: Sun, 3 Jan 2021 02:08:34 +0700 Subject: [PATCH] Match All Plus Match all characters include newline. Flag 'g' is not affect to result. --- src/data/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/index.js b/src/data/index.js index ffd1e9a..b32e1dc 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -189,5 +189,11 @@ export const patterns = [{ regex:/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(?:-((?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/, description:"Matches valid semantic versioning.", tags:"semver,semantic,versioning,version" +}, +{ + name:"Match All Plus", + regex:/^(?!.)*(.*\n*.*)*/, + description:"Match all characters include newline. Flag 'g' is optional.", + tags:"match,all,any" } ];