Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit a7aa68e

Browse files
Add RegExp support in path
1 parent d8e22a0 commit a7aa68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/compile.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
}
5656

5757
if ($pattern) {
58-
@m = grep {index($_->[0], $pattern) > -1} @m;
58+
@m = grep {$_->[0] =~ $pattern} @m;
5959
$force = 1;
6060
# use the last hash to maintain consistency between current templates with new one
6161
# since pattern specified, so one or few templates are going to be compiled not all of them

0 commit comments

Comments
 (0)