diff --git a/CHANGELOG.md b/CHANGELOG.md index 21a2fab..21f021d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ project adheres to [Semantic Versioning](http://semver.org/). Older versions are detailed as [GitHub releases](https://github.com/mudge/re2/releases) for this project. +## [2.7.0] - 2024-01-20 +### Added +- Support strings with null bytes as patterns and input throughout the library. + Note this means strings with null bytes will no longer be truncated at the + first null byte. Thanks to @manueljacob for reporting this bug. + ## [2.6.0] - 2023-12-27 ### Added - Add precompiled native gem for Ruby 3.3.0. @@ -230,6 +236,7 @@ releases](https://github.com/mudge/re2/releases) for this project. ### Fixed - In Ruby 1.9.2 and later, re2 will now set the correct encoding for strings +[2.7.0]: https://github.com/mudge/re2/releases/tag/v2.7.0 [2.6.0]: https://github.com/mudge/re2/releases/tag/v2.6.0 [2.6.0.rc1]: https://github.com/mudge/re2/releases/tag/v2.6.0.rc1 [2.5.0]: https://github.com/mudge/re2/releases/tag/v2.5.0 diff --git a/README.md b/README.md index 3f1e53b..4030226 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Python". [![Build Status](https://github.com/mudge/re2/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/mudge/re2/actions) -**Current version:** 2.6.0 +**Current version:** 2.7.0 **Bundled RE2 version:** libre2.11 (2023-11-01) ```ruby @@ -373,6 +373,8 @@ Alternatively, you can set the `RE2_USE_SYSTEM_LIBRARIES` environment variable i * Thanks to [Jean Boussier](https://github.com/byroot) for contributing the switch to Ruby's `TypedData` API and the resulting garbage collection improvements in 2.4.0. +* Thanks to [Manuel Jacob](https://github.com/manueljacob) for reporting a bug + when passing strings with null bytes. ## Contact diff --git a/lib/re2/version.rb b/lib/re2/version.rb index 344b676..c4c1a06 100644 --- a/lib/re2/version.rb +++ b/lib/re2/version.rb @@ -10,5 +10,5 @@ module RE2 - VERSION = "2.6.0" + VERSION = "2.7.0" end