Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored Apr 12, 2018
1 parent 92a4d89 commit c6b777e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pho/Framework/Loaders/OutgoingEdgeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ public static function pack(Framework\ParticleInterface $particle): AbstractLoad
// instead of string:::string:::(string:::)?
// which would be trimmed as string:::string:::(string::
// show: string:::string(:::string?)
$pattern = substr($pattern, sprintf(":::(%s)?", $_pattern), sprintf("(:::%s)?", substr($_pattern, 0, -3)));
$pattern = str_replace(sprintf(":::(%s)?", $_pattern), sprintf("(:::%s)?", substr($_pattern, 0, -3)), $pattern);
}
else { // case of (string:::)?
$pattern = substr($pattern, ":::)?", ")?");
$pattern = str_replace(":::)?", ")?", $pattern);
}
$formation_patterns[$formable] = $pattern;
}
Expand Down

0 comments on commit c6b777e

Please sign in to comment.