Skip to content

Commit befe450

Browse files
committed
perlreref: fix definition of \R
The order of alternatives matters because Carriage Return (\x0D) is matched by \v (vertical whitespace), meaning the old pattern was effectively equivalent to just \v. Fixes #23002.
1 parent 4f06e4c commit befe450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pod/perlreref.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ and L<perlunicode> for details.
142142
like '.' without /s modifier)
143143
\v A vertical whitespace
144144
\V A non vertical whitespace
145-
\R A generic newline (?>\v|\x0D\x0A)
145+
\R A generic newline (?>\x0D\x0A|\v)
146146

147147
\pP Match P-named (Unicode) property
148148
\p{...} Match Unicode property with name longer than 1 character

0 commit comments

Comments
 (0)