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 5eff634 commit 5cf6d38Copy full SHA for 5cf6d38
src/Parser/Parser.php
@@ -60,7 +60,7 @@ public static function getNamespacePrefix(string $name): ?string
60
*/
61
private static function validateElementName(string $value): void
62
{
63
- $regex = '/^[a-zA-Z][a-zA-Z0-9_]*(:[a-zA-Z][a-zA-Z0-9_]*)?$/';
+ $regex = '/^([a-zA-Z_][\w.-]*)(:[a-zA-Z_][\w.-]*)?$/';
64
65
if (preg_match($regex, $value) !== 1) {
66
throw new InvalidArgumentException(
0 commit comments