Stringy icon indicating copy to clipboard operation
Stringy copied to clipboard

Fixed wrong character range in preg pattern in slugify function

Open unti1x opened this issue 7 years ago • 3 comments

Fixed following warning:

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 12 {"exception":"[object] (ErrorException(code: 0): Warning: preg_replace(): Compilation failed: invalid range in character class at offset 12 at vendor/danielstjules/stringy/src/Stringy.php:1174)"} []

unti1x avatar Dec 21 '18 13:12 unti1x

Same.

jackmcdade avatar Jan 07 '19 15:01 jackmcdade

Unfortunately this is blocking us from updating to php 7.3

rrelmy avatar Jan 09 '19 20:01 rrelmy

We pushed an official fork of Stringy to Packagist with this fix because it was a pretty big deal for Statamic. Feel free to use it, we'll keep it supported as long as this repo stays a ghost town.

https://packagist.org/packages/statamic/stringy https://github.com/statamic/Stringy

jackmcdade avatar Jan 11 '19 15:01 jackmcdade