mirror of
https://github.com/semver/semver.git
synced 2026-03-09 07:22:04 -05:00
[PR #998] semver: Update FAQ entry on regular expressions #856
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/semver/semver/pull/998
Author: @har7an
Created: 1/20/2024
Status: 🔄 Open
Base:
master← Head:docs/posix-regex-in-faq📝 Commits (1)
a86e97asemver: Update FAQ entry on regular expressions📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
semver.md(+12 -2)📄 Description
with a third variant that works without non-capturing groups and is compatible with POSIX regex (i.e. for use in bash). This originates from an issue I opened earlier, found here: https://github.com/semver/semver/issues/981
There is a small repo which contains the terse form of the regex along with a more human-readable one and a bash script that demonstrates and runs the regex against the set of test strings from regex101. I also went and created a snippet for this regex on regex101.
I only just noticed that there is a long-standing open PR which adds exactly the same regex (but with less explanation) to the FAQ.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.