mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-09 23:15:41 -06:00
Added more tests covering unicode in custom slugs
This commit is contained in:
parent
9857f105ec
commit
6bedca4ee6
@ -54,6 +54,7 @@ class ShortUrlMetaInputFilter extends InputFilter
|
||||
$customSlug->getFilterChain()->attach(new Validation\SluggerFilter(new CocurSymfonySluggerBridge(new Slugify([
|
||||
'regexp' => CUSTOM_SLUGS_REGEXP,
|
||||
'lowercase' => false, // We want to keep it case sensitive
|
||||
'rulesets' => ['default'],
|
||||
]))));
|
||||
$customSlug->getValidatorChain()->attach(new Validator\NotEmpty([
|
||||
Validator\NotEmpty::STRING,
|
||||
|
@ -88,5 +88,10 @@ class ShortUrlMetaTest extends TestCase
|
||||
yield ['wp-admin.php', 'wp-admin.php'];
|
||||
yield ['UPPER_lower', 'UPPER_lower'];
|
||||
yield ['more~url_special.chars', 'more~url_special.chars'];
|
||||
yield ['äéñ', 'äen'];
|
||||
yield ['구글', '구글'];
|
||||
yield ['グーグル', 'グーグル'];
|
||||
yield ['谷歌', '谷歌'];
|
||||
yield ['гугл', 'гугл'];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user