Skip to content

Commit

Permalink
allow '-' (hyphen character) in AbstractFrame xml node attributes (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: Günter Grodotzki <gunter@grodotzki.com>
  • Loading branch information
krtcom and lifeofguenter authored Oct 15, 2022
1 parent 6666c0f commit 4ba8a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AfriCC/EPP/AbstractFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function createNodes($path)
if (preg_match('/^(.*)\[(\d+)\]$/', $node_name, $matches)) {
// direct node-array access
$node_name = $matches[1];
} elseif (preg_match('/^(.*)\[@([a-z0-9]+)=\'([a-z0-9_]+)\'\]$/i', $node_name, $matches)) {
} elseif (preg_match('/^(.*)\[@([a-z0-9]+)=\'([a-z0-9_-]+)\'\]$/i', $node_name, $matches)) {
// check if attribute needs to be set
$node_name = $matches[1];
$attr_name = $matches[2];
Expand Down

0 comments on commit 4ba8a76

Please sign in to comment.