From 523b66ca6c2630ee99c4b2e18cb09cf8f2e1e3f9 Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Fri, 19 Jun 2020 10:16:34 +0700 Subject: [PATCH] Fix Container SGML Regex --- engine/kernel/s-g-m-l.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/kernel/s-g-m-l.php b/engine/kernel/s-g-m-l.php index 3476fbcd..a4503fe6 100644 --- a/engine/kernel/s-g-m-l.php +++ b/engine/kernel/s-g-m-l.php @@ -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,