Skip to content

Commit

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

0 comments on commit 3102831

Please sign in to comment.