From afc4088ce278f97585f9ff5e65a921f7c4c65531 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Wed, 9 Mar 2022 22:10:42 +0000 Subject: [PATCH] feat(tests): Use official semver.org RegExp (#5990) 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. --- tests/migration/renamings-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migration/renamings-schema.json b/tests/migration/renamings-schema.json index 180f94ad8..6dc643b20 100644 --- a/tests/migration/renamings-schema.json +++ b/tests/migration/renamings-schema.json @@ -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"}