Security: Enhance the library's security by adding backtrack protection, which helps prevent potential performance issues in edge cases. This update significantly reduces the risk of ReDoS attacks when using the library.
Improvements
Documentation: Correct an error in the README regarding the result of re.exec('/test/route'), ensuring users have accurate information when using the library with react-router@5.x.