0
0
mirror of https://github.com/semver/semver.git synced 2025-08-22 13:58:33 +00:00

chore: add link to Regex101

This commit is contained in:
Kévin Dunglas 2021-12-05 22:05:13 +01:00
parent b6010889cb
commit 66ee767b79
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -359,6 +359,8 @@ See: <https://regex101.com/r/vkijKf/1/>
One that is compatible with Bash:
See: <https://regex101.com/r/yPKUVq/1>
```
^(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-]+)*))?$
```