Skip to content

Commit

Permalink
Update AbstractFrame.php (#52)
Browse files Browse the repository at this point in the history
Allow underscore in xpath attributes (required for example in cz-nic (.cz) optional parameter)
  • Loading branch information
krtcom authored and lifeofguenter committed Jun 29, 2017
1 parent 6daf8e6 commit 8d5b3ec
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 @@ -128,7 +128,7 @@ protected function createNodes($path)
$node_name = $matches[1];
}
// check if attribute needs to be set
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)) {
$node_name = $matches[1];
$attr_name = $matches[2];
$attr_value = $matches[3];
Expand Down

0 comments on commit 8d5b3ec

Please sign in to comment.