[PR #117] [CLOSED] Add regular expression grammar #746

Closed
opened 2026-02-17 12:18:04 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/semver/semver/pull/117
Author: @isaacs
Created: 6/14/2013
Status: Closed

Base: masterHead: regexp


📝 Commits (2)

  • f31c422 Add BNF Grammar for valid version strings
  • f31335b Add regular expression grammar

📊 Changes

1 file changed (+160 additions, -0 deletions)

View changed files

📝 semver.md (+160 -0)

📄 Description

In addition to the BNF grammar, provide regular expressions for use in
tokenizing and validating SemVer strings.

Note that this builds on the BNF grammar provided in #116. It should be possible to cherry-pick this without taking BNF, but since the BNF seems less controversial, I opted to avoid the conflicts in the event that this was acceptable as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/semver/semver/pull/117 **Author:** [@isaacs](https://github.com/isaacs) **Created:** 6/14/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `regexp` --- ### 📝 Commits (2) - [`f31c422`](https://github.com/semver/semver/commit/f31c422f7cfe2c35e08d455b90afca6f237b24e4) Add BNF Grammar for valid version strings - [`f31335b`](https://github.com/semver/semver/commit/f31335bf389a2a7158542b6d737e0f5a4d68e53f) Add regular expression grammar ### 📊 Changes **1 file changed** (+160 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `semver.md` (+160 -0) </details> ### 📄 Description In addition to the BNF grammar, provide regular expressions for use in tokenizing and validating SemVer strings. Note that this builds on the BNF grammar provided in #116. It should be possible to cherry-pick this without taking BNF, but since the BNF seems less controversial, I opted to avoid the conflicts in the event that this was acceptable as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-17 12:18:04 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#746