GitShow/sindresorhus/semver-regex
sindresorhus

semver-regex

Regular expression for matching semver versions

by sindresorhus
Star on GitHubForknpm

JavaScript

142 stars71 forks8 contributorsQuiet · 3y agoSince 2014v4.0.5MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus41 contributions
stroncium
stroncium2 contributions
antongolub
antongolub1 contribution
BendingBender
BendingBender1 contribution
dilijev
dilijev1 contribution
s-a
s-a1 contribution
jelhan
jelhan1 contribution

Languages

View on GitHub →
JavaScript98.6%
TypeScript1.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
bartversluijs
Lookbehind is not supported in all browsers (Safari)ClosedIssue

Hi all, First of all, thanks for this package! I'm using it to check the version input in a Vue.js frontend. However, when opening a page in Safari (the new Internet Explorer), a lookbehind in regex is not supported. I'll try and change the Regex so it'll work in Safari. However, like most developers, regex is a "hocus-pocus language", especially when they're long like this one. Any suggestions are welcome!

bartversluijs · 9mo ago
XhmikosR
Backport the ReDoS fix in v2.0.0ClosedIssue

Hey, @sindresorhus. I know you might not support v2.0.0, but there are so many packages that are still using it: https://www.npmjs.com/package/semver-regex?activeTab=versions Would it be possible to backport the fix for 2.x too? Thanks! PS. the npm tag points to v3.1.3, not sure if that's intentional.

XhmikosR · 4y ago
antongolub
fix: reduce some false positive matchesMergedPR

fix: handle some false positive matches ~~* feat: introduce SEMVER_REGEX const~~ test: check what exactly is captured by regex test: verify test cases via semver chore: up deps, apply xo closes #21

antongolub · 4y ago
Structured data for AI agents

Repository: sindresorhus/semver-regex. Description: Regular expression for matching semver versions Stars: 142, Forks: 71. Primary language: JavaScript. Languages: JavaScript (98.6%), TypeScript (1.4%). License: MIT. Latest release: v4.0.5 (4y ago). Open PRs: 0, open issues: 0. Last activity: 3y ago. Community health: 85%. Top contributors: sindresorhus, stroncium, antongolub, BendingBender, dilijev, s-a, jelhan.

·@ofershap

Replace github.com with gitshow.dev