Skip to content

Commit a27615d

Browse files
committed
ext/B/t/OptreeCheck.pm: Escape literal pattern '{'
The deprecated warnings were getting suppressed, but literal '{' in patterns needs to be escaped.
1 parent 60108b4 commit a27615d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/B/t/OptreeCheck.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55
use vars qw($TODO $Level $using_open);
66
require "test.pl";
77

8-
our $VERSION = '0.13';
8+
our $VERSION = '0.14';
99

1010
# now export checkOptree, and those test.pl functions used by tests
1111
our @EXPORT = qw( checkOptree plan skip skip_all pass is like unlike
@@ -703,12 +703,12 @@ sub mkCheckRex {
703703
.* # all sorts of things follow it
704704
v # The opening v
705705
)
706-
(?:(:>,<,%,\\{) # hints when open.pm is in force
706+
(?:(:>,<,%,\\\{) # hints when open.pm is in force
707707
|(:>,<,%)) # (two variations)
708708
(\ ->(?:-|[0-9a-z]+))?
709709
$
710710
]
711-
[$1 . ($2 && ':{') . $4]xegm; # change to the hints without open.pm
711+
[$1 . ($2 && ':\{') . $4]xegm; # change to the hints without open.pm
712712
}
713713

714714

0 commit comments

Comments
 (0)