Skip to content

Commit

Permalink
Allows colons in element data name
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenQ authored and AaronDDM committed Jul 28, 2021
1 parent b57efa6 commit 670f017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XMLElementData.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getName(): string
*/
public function setName(string $name): XMLElementData
{
$name = preg_replace('/([^a-zA-Z\-\_]+)/', '', $name);
$name = preg_replace('/([^a-zA-Z\-\_\:]+)/', '', $name);

$this->name = $name;
return $this;
Expand Down

0 comments on commit 670f017

Please sign in to comment.