From 670f017a4d37c42fd093315fce8244cf6ba8cd1f Mon Sep 17 00:00:00 2001 From: zhenyuquek Date: Mon, 19 Jul 2021 16:01:28 +0200 Subject: [PATCH] Allows colons in element data name --- lib/XMLElementData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/XMLElementData.php b/lib/XMLElementData.php index 38098dd..6204773 100644 --- a/lib/XMLElementData.php +++ b/lib/XMLElementData.php @@ -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;