Skip to content

Commit

Permalink
Fix Container SGML Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 19, 2020
1 parent 58afbca commit 523b66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/kernel/s-g-m-l.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct($in = []) {
$attr = x(implode("", $c[1]));
$attr_open = x($c[1][2] . $c[1][0]);
$attr_close = x($c[1][1]);
if (preg_match('/' . $tag_open . '([^' . $tag . $attr . '\s]+)(\s[^' . $tag_close . ']*)?(?:' . $tag_close . '((?:(?R)|[\s\S])*?)(?:' . $tag_open . $tag_end . '(\1)' . $tag_close . ')|(?:' . $tag_end . ')' . ($this->strict ? "" : '?') . $tag_close . ')/', n($in), $m)) {
if (preg_match('/' . $tag_open . '([^' . $tag . $attr . '\s]+)(\s[^' . $tag_close . ']*)?(?:' . $tag_close . '((?R)|[\s\S]*?)(?:' . $tag_open . $tag_end . '(\1)' . $tag_close . ')|(?:' . $tag_end . ')' . ($this->strict ? "" : '?') . $tag_close . ')/', n($in), $m)) {
$this->lot = [
0 => $m[1],
1 => isset($m[4]) ? $m[3] : false,
Expand Down

0 comments on commit 523b66c

Please sign in to comment.