File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -5300,6 +5300,7 @@ t/re/reg_nc_tie.t Test the tied methods of Tie::Hash::NamedCapture
5300
5300
t/re/reg_pmod.t See if regexp /p modifier works as expected
5301
5301
t/re/reg_posixcc.t See if posix character classes behave consistently
5302
5302
t/re/re_tests Regular expressions for regexp.t
5303
+ t/re/rt122747.t Test rt122747 assert faile (requires DEBUGGING)
5303
5304
t/re/rxcode.t See if /(?{ code })/ works
5304
5305
t/re/subst_amp.t See if $&-related substitution works
5305
5306
t/re/subst.t See if substitution works
Original file line number Diff line number Diff line change
1
+ # !./perl
2
+ use strict;
3
+ use warnings;
4
+
5
+ $| = 1;
6
+
7
+
8
+ BEGIN {
9
+ chdir ' t' if -d ' t' ;
10
+ @INC = (' ../lib' ,' .' ,' ../ext/re' );
11
+ require ' ./test.pl' ;
12
+ }
13
+
14
+ plan tests => 3;
15
+ use strict;
16
+
17
+ my (@body ) = (
18
+ " <mailto:xxxx.xxxx\@ outlook.com>" ,
19
+ " A\x{B9} ker\x{E8} eva xxxx.xxxx\@ outlook.com \x{201D} " ,
20
+ );
21
+
22
+ for (@body ) {
23
+ s { <? (?<!mailto:) \b ( [a-z0-9.]+ \@ \S + ) \b
24
+ (?: > | \s {1,10} (?!phone) [a-z]{2,11} : ) } { } xgi ;
25
+ my $got = $1 ;
26
+
27
+ }
28
+ ok(" got to the end without dieing (note without DEBUGGING passing this test means nothing)" );
29
+
You can’t perform that action at this time.
0 commit comments