composer / semver

Semantic versioning utilities with the addition of version constraints parsing and checking.
MIT License
3.15k stars 76 forks source link

Add possessive quantifiers where it makes sense to avoid unneeded backtracking #29

Closed Seldaek closed 9 years ago

Seldaek commented 9 years ago

I think it's safe, and it passes the test suite. Shouldn't matter a whole lot though as I think most of those regexes fail pretty quickly or succeed in one go, but it probably doesn't hurt.

alcohol commented 9 years ago

Nerd.