Skip to content

Commit c1c3a44

Browse files
authored
Merge pull request #174 from edent/patch-1
Allow unquoted attributes
2 parents 5a239a9 + 0a28280 commit c1c3a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Languages/Xml/Patterns/XmlAttributePattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
public function getPattern(): string
2020
{
21-
return '(?<match>[\w\-]+)="';
21+
return '(?<match>[\w\-]+)="?';
2222
}
2323

2424
public function getTokenType(): TokenTypeEnum

0 commit comments

Comments
 (0)