path-to-regexp
path-to-regexp copied to clipboard
More thoroughly check for unbalanced patterns.
I initially had a much more complex idea, using character classes and what not (to allow () in some cases), but then realized that it can be easily done by how prefixes and suffixes are implemented, using {}