-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2310 from acelaya-forks/feature/less-restrictive-…
…custom-slugs Be less restrictive on what characters are disallowed in custom slugs
- Loading branch information
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,13 +59,11 @@ public function valuesWithReservedCharsAreInvalid(string $value): void | |
|
||
public static function provideInvalidValues(): iterable | ||
{ | ||
yield ['port:8080']; | ||
yield ['foo?bar=baz']; | ||
yield ['some-thing#foo']; | ||
yield ['call()']; | ||
yield ['array[]']; | ||
yield ['brackets[]']; | ||
yield ['[email protected]']; | ||
yield ['wildcard*']; | ||
yield ['$500']; | ||
} | ||
|
||
public function createValidator(bool $multiSegmentSlugsEnabled = false): CustomSlugValidator | ||
|