What I am trying to do:
I am trying to set up a deployment environment tag rule in Github with the recommended Semver regex pattern on the bottom of page here: https://semver.org/
Issue I am encountering:
The Semver pattern I use is 180 characters long. Github rule allows only 100 characters, so it truncates the tail of the pattern.
I reduced the length to 87, with no luck. Eventually, I left only the core major.minor.patch portion, which still didn't work for another reason.
Original ^(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-]+)*))?$
Attempt 2 ^(0|[1-9]\d*).(0|[1-9]\d*).(0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))
Attempt 3 ^(0|[1-9]\d*).(0|[1-9]\d*).(0|[1-9]\d*)
Is there any way to set the pattern another way or is shortening it the only solution?