We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 604a28b commit 07127f9Copy full SHA for 07127f9
src/Validator.php
@@ -7,14 +7,12 @@
7
*/
8
class Validator
9
{
10
- public const EXTENDED_COMMENT_SEARCH = '/{{!--.*?--}}/s';
11
-
12
/**
13
* Strip extended comments {{!-- .... --}}
14
15
public static function stripExtendedComments(string $template): string
16
17
- return preg_replace(static::EXTENDED_COMMENT_SEARCH, '{{! }}', $template);
+ return preg_replace('/{{!--.*?--}}/s', '{{! }}', $template);
18
}
19
20
0 commit comments