Skip to content

Commit

Permalink
TASK: Simplify regex of PATTERN_SUPPORTED_URIS
Browse files Browse the repository at this point in the history
Previously it was a union of `[a-z0-9-]+` and a UUID pattern, but the character set already covers the UUID case
  • Loading branch information
mhsdesign committed Jul 3, 2024
1 parent 7531271 commit a191ff1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Neos.Neos/Classes/Fusion/ConvertUrisImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
*/
class ConvertUrisImplementation extends AbstractFusionObject
{
public const PATTERN_SUPPORTED_URIS
= '/(node|asset):\/\/([a-z0-9\-]+|([a-f0-9]){8}-([a-f0-9]){4}-([a-f0-9]){4}-([a-f0-9]){4}-([a-f0-9]){12})/';
private const PATTERN_SUPPORTED_URIS = '/(node|asset):\/\/([a-z0-9\-]+)/';

/**
* @Flow\Inject
Expand Down

0 comments on commit a191ff1

Please sign in to comment.