Skip to content

Commit 20d5d02

Browse files
committed
Allow forward slashes in View Parser plugins. Helpful for including files.
1 parent 9451351 commit 20d5d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/View/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ protected function parsePlugins(string $template)
711711
$isPair = is_array($callable);
712712
$callable = $isPair ? array_shift($callable) : $callable;
713713

714-
$pattern = $isPair ? '#{\+\s*' . $plugin . '([\w\d=-_:\+\s()\"@.]*)?\s*\+}(.+?){\+\s*/' . $plugin . '\s*\+}#ims' : '#{\+\s*' . $plugin . '([\w\d=-_:\+\s()\"@.]*)?\s*\+}#ims';
714+
$pattern = $isPair ? '#{\+\s*' . $plugin . '([\w\d=-_:\+\s()/\"@.]*)?\s*\+}(.+?){\+\s*/' . $plugin . '\s*\+}#ims' : '#{\+\s*' . $plugin . '([\w\d=-_:\+\s()/\"@.]*)?\s*\+}#ims';
715715

716716
/**
717717
* Match tag pairs

0 commit comments

Comments
 (0)