Skip to content

Commit

Permalink
feat(tests): Use official semver.org RegExp (#5990)
Browse files Browse the repository at this point in the history
Use the official semantic versioning regexp from
https://semver.org/, rather than the shorter but sloppier one
we had previously found at
https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39.
  • Loading branch information
cpcallen authored Mar 9, 2022
1 parent 3c723f0 commit afc4088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/migration/renamings-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A file containing information about module and module export renamings",
"type": "object",
"patternProperties": {
"^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$": {"$ref": "#/$defs/version"}
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$": {"$ref": "#/$defs/version"}
},
"properties": {
"develop": {"$ref": "#/$defs/version"}
Expand Down

0 comments on commit afc4088

Please sign in to comment.