From c5f3fdabc4ba42120677acfca6f78b5a5425118e Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Tue, 19 Mar 2024 11:23:21 +0700 Subject: [PATCH] Update --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 38c6830..da1c9d4 100755 --- a/index.php +++ b/index.php @@ -14,7 +14,7 @@ function content($content) { $alter = $state->x->link ?? []; $alter_content = (array) ($alter->content ?? []); $alter_data = (array) ($alter->data ?? []); - $z = '\s*(?>\s[\p{L}\p{N}_:-]+(?>=(?:"[^"]*"|\'[^\']*\'|[^\/>]*))?)*\s*'; + $z = '\s*(?>\s[\p{L}\p{N}_:-]+(?>=(?>"[^"]*"|\'[^\']*\'|[^\/>]*))?)*\s*'; if ($alter_content) { foreach ($alter_content as $k => $v) { if (!$v || false === \strpos($content, '')) { @@ -53,7 +53,7 @@ function data($content, $data) { if (!$content || false === \strpos($content, '<')) { return $content; } - $z = '\s*(?>\s[\p{L}\p{N}_:-]+(?>=(?:"[^"]*"|\'[^\']*\'|[^\/>]*))?)*\s*'; + $z = '\s*(?>\s[\p{L}\p{N}_:-]+(?>=(?>"[^"]*"|\'[^\']*\'|[^\/>]*))?)*\s*'; foreach ($data as $k => $v) { if (!$v || ( false === \strpos($content, '') &&