Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Mar 19, 2024
1 parent af32adf commit c5f3fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '</' . $k . '>')) {
Expand Down Expand Up @@ -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, '</' . $k . '>') &&
Expand Down

0 comments on commit c5f3fda

Please sign in to comment.