Skip to content

Commit

Permalink
debugging Yaml Array value
Browse files Browse the repository at this point in the history
  • Loading branch information
Acksop authored Mar 1, 2024
1 parent 459c575 commit d00e867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EdgeAltoRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function setRouteFromConfig($configUrl){
if (preg_match("#[ ]*([a-zA-Z_+ ]*)[:][ ]*([a-zA-Z0-9:\/\\ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ_+\-'\"\{\,\ \}\(\)\[\]\|=>\#]*[ ]*)#", $line, $matches)) {
//searching array pattern
if (preg_match("#{.*}#", $matches[2])) {
if (preg_match_all("#(?<capture>[0-9a-zA-Z:\/\\ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ_+\- \[\]\|\#]*)|(?<capture>[\[][0-9a-zA-Z:\/\\ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ_+\- \]\|\#]*,?[\]])#", $matches[2], $arrayMatches)) {
if (preg_match_all("#(?<capture>([0-9a-zA-Z:\/\\ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ_+\- \[\]\|\#]*)|([\[][0-9a-zA-ZÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ_-'\"]*,?[\]]))#", $matches[2], $arrayMatches)) {
$array = array();
foreach ($arrayMatches['capture'] as $capturedValue) {
if(preg_match("#^\[((.*=>.*),?)*\]$#", $capturedValue)){
Expand Down

0 comments on commit d00e867

Please sign in to comment.