Be less restrictive on what characters are disallowed in custom slugs

This commit is contained in:
Alejandro Celaya
2024-12-17 18:00:02 +01:00
parent d533adf7ce
commit e80af78e09
3 changed files with 9 additions and 7 deletions

View File

@@ -59,13 +59,11 @@ class CustomSlugValidatorTest extends TestCase
public static function provideInvalidValues(): iterable
{
yield ['port:8080'];
yield ['foo?bar=baz'];
yield ['some-thing#foo'];
yield ['call()'];
yield ['array[]'];
yield ['brackets[]'];
yield ['email@example.com'];
yield ['wildcard*'];
yield ['$500'];
}
public function createValidator(bool $multiSegmentSlugsEnabled = false): CustomSlugValidator