Skip to content

Commit 07127f9

Browse files
committed
Remove unnecessary constant
1 parent 604a28b commit 07127f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Validator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
*/
88
class Validator
99
{
10-
public const EXTENDED_COMMENT_SEARCH = '/{{!--.*?--}}/s';
11-
1210
/**
1311
* Strip extended comments {{!-- .... --}}
1412
*/
1513
public static function stripExtendedComments(string $template): string
1614
{
17-
return preg_replace(static::EXTENDED_COMMENT_SEARCH, '{{! }}', $template);
15+
return preg_replace('/{{!--.*?--}}/s', '{{! }}', $template);
1816
}
1917

2018
/**

0 commit comments

Comments
 (0)