Skip to content

v2.1.1

Latest

Choose a tag to compare

@IGLOU-EU IGLOU-EU released this 18 May 02:11
d10921e

🥳 New Release 🚀

Bug Fixes

  • fix: MatchFromByte short-circuited on any pattern starting with * — it returned true for every pattern whose first byte was * (e.g. "*abc" matched "xyz") instead of only for the lone "*" pattern, as Match and MatchByRune do. The check now compares the whole pattern. Thanks to @leno23 for finding this bug. (4ba4148)

Build Improvements

  • build: Retracted v2.1.0 in go.mod due to the MatchFromByte bug. (d10921e)
  • build: Generate the benchmark results table directly in the README. (5480243)

Tests

  • test: Added wildcard_test.go covering the trivial inline cases of the public API against the three functions at once, so the MatchFromByte regression cannot come back unnoticed. (4ba4148)
  • test: Added BenchmarkRegexPrepared to isolate the regexp compilation 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