We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc47080 commit 5cb3993Copy full SHA for 5cb3993
1 file changed
src/Context.php
@@ -397,9 +397,12 @@ public static function isString($str)
397
*/
398
public static function isSeparator($str)
399
{
400
- // NOTES: Only ASCII characters may be separators.
+ // NOTES: Only non alphanumeric ASCII characters may be separators.
401
// `~` is the last printable ASCII character.
402
- return ($str <= '~') && (!ctype_alnum($str)) && ($str !== '_');
+ return ($str <= '~') && ($str !== '_')
403
+ && (($str < '0') || ($str > '9'))
404
+ && (($str < 'a') || ($str > 'z'))
405
+ && (($str < 'A') || ($str > 'Z'));
406
}
407
408
/**
0 commit comments