Releases: s9e/RegexpBuilder
2.1.0
2.0.0
See UPGRADING.md for backward-incompatible changes and CHANGES.md for an overview of functional changes.
2.0.0-beta.3
See CHANGELOG.md for a list of changes.
2.0.0-beta.1
PHP requirements have been bumped to 8.1.
⚠ Change in behaviour: alternations at the root level of the generated expression are not put in a non-capturing group anymore. This change is only relevant if the generated expression is used as part of a bigger regexp. The old behaviour can be restored at runtime via the $builder->standalone
property. See below for an example.
$builder = new s9e\RegexpBuilder\Builder;
var_dump($builder->build(['foo', 'bar', 'baz']));
$builder->standalone = false;
var_dump($builder->build(['foo', 'bar', 'baz']));
string(10) "ba[rz]|foo"
string(14) "(?:ba[rz]|foo)"
Bugfix release
This release fixes an issue (PHP error) that can occur with some combinations of strings. It requires a fairly specific combination of strings made of digits and sharing the same prefix.
Maintenance release
All classes have been converted enforce strict typing. There is no other change.
1.4.4
Maintenance release
composer.json was updated.
Maintenance release - no functional change
Some internal methods have been updated with no functional change.