Skip to content

Commit 4ba8a76

Browse files
allow '-' (hyphen character) in AbstractFrame xml node attributes (#93)
Co-authored-by: Günter Grodotzki <[email protected]>
1 parent 6666c0f commit 4ba8a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AfriCC/EPP/AbstractFrame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected function createNodes($path)
219219
if (preg_match('/^(.*)\[(\d+)\]$/', $node_name, $matches)) {
220220
// direct node-array access
221221
$node_name = $matches[1];
222-
} elseif (preg_match('/^(.*)\[@([a-z0-9]+)=\'([a-z0-9_]+)\'\]$/i', $node_name, $matches)) {
222+
} elseif (preg_match('/^(.*)\[@([a-z0-9]+)=\'([a-z0-9_-]+)\'\]$/i', $node_name, $matches)) {
223223
// check if attribute needs to be set
224224
$node_name = $matches[1];
225225
$attr_name = $matches[2];

0 commit comments

Comments
 (0)