Comments (3)
Bad news, Safari 15 doesn’t support it either https://caniuse.com/?search=regexp%20lookbehind
from semver-regex.
Just a suggestion: you can check the input size first and then apply semver "official" regex. There're no lookbehinds so it may be more suitable.
The key profit of lookbehind here is the redos-safe assertion that .a.b.c
meta follows after -foo.bar.etc
. Old good -(...*(\. ...* (+ ...*)?)?)?
-based approach might significantly affect performance.
from semver-regex.
Same for us:
Page stays blank then, so it's pretty much unusable in any app that has to support all browsers.
from semver-regex.
Related Issues (13)
- Why are you exporting a function? HOT 3
- Wildcards? HOT 1
- Matches "0.0.0 HOT 2
- Matches "0.0.0" HOT 3
- This regex is broken by design HOT 4
- Firefox - SyntaxError: invalid regexp group HOT 2
- the example `1.2.3-alpha.10.beta.0+build.unicorn.rainbow` in README is no longer valid HOT 6
- You regex allows leading zeroes HOT 3
- Semantic version tests are not being passed
- Backport the ReDoS fix in v2.0.0 HOT 8
- `v` prefix is not part of semver HOT 6
- Docker Version Question HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semver-regex.