-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Milestone
Description
The version regexp pattern in the composer-schema is using the a possessive quantifier (*+) which is not supported by the Regular Expression specification from JavaScript.
However the JSON schema spec requires JavaScript expression syntax: https://json-schema.org/understanding-json-schema/reference/regular_expressions.
composer/res/composer-schema.json
Line 31 in 053a5ed
| "pattern": "^[vV]?\\d+(?:[.-]\\d+){0,3}[._-]?(?:(?:[sS][tT][aA][bB][lL][eE]|[bB][eE][tT][aA]|[bB]|[rR][cC]|[aA][lL][pP][hH][aA]|[aA]|[pP][aA][tT][cC][hH]|[pP][lL]|[pP])(?:(?:[.-]?\\d+)*+)?)?(?:[.-]?[dD][eE][vV]|\\.x-dev)?(?:\\+.*)?$|^dev-.*$" |
First reported by microsoft/vscode-json-languageservice#261
hexpunk