🥳 New Release 🚀
Bug Fixes
- fix:
MatchFromByteshort-circuited on any pattern starting with*— it returnedtruefor every pattern whose first byte was*(e.g."*abc"matched"xyz") instead of only for the lone"*"pattern, asMatchandMatchByRunedo. The check now compares the whole pattern. Thanks to @leno23 for finding this bug. (4ba4148)
Build Improvements
- build: Retracted
v2.1.0ingo.moddue to theMatchFromBytebug. (d10921e) - build: Generate the benchmark results table directly in the README. (5480243)
Tests
- test: Added
wildcard_test.gocovering the trivial inline cases of the public API against the three functions at once, so theMatchFromByteregression cannot come back unnoticed. (4ba4148) - test: Added
BenchmarkRegexPreparedto isolate theregexpcompilation cost. (118d1ca)
Documentation
- docs: Added package doc, clarified comments and the README example. (85aa6bc)
- docs: Fixed README typos and example (#12). (454326b)
Thanks to everyone for your feedback and contributions! 😊
Full Changelog: v2.1.0...v2.1.1