Skip to content

Commit a67a29a

Browse files
committed
ParseXS: t/001-basic.t: fixup regex
A couple of newly-added regexes had (in part) /....\b*/, which gives the warning: \b* matches null string many times in regex so this commit removes the extraneous '*'
1 parent 8eaf72e commit a67a29a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/ExtUtils-ParseXS/t/001-basic.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,11 +1758,11 @@ EOF
17581758
],
17591759
[ 0, 0, qr/\bdXSTARG;/, "has targ def" ],
17601760
[ 0, 0, qr/\bXSprePUSH;/, "has XSprePUSH" ],
1761-
[ 0, 1, qr/\bXSprePUSH\b.*\bXSprePUSH\b*/s,
1761+
[ 0, 1, qr/\bXSprePUSH\b.+\bXSprePUSH\b/s,
17621762
"has only one XSprePUSH" ],
17631763

17641764
[ 0, 0, qr/\bPUSHi\b/, "has PUSHi" ],
1765-
[ 0, 0, qr/\bPUSHs\b.*\bPUSHs\b*/s,
1765+
[ 0, 0, qr/\bPUSHs\b.+\bPUSHs\b/s,
17661766
"has two PUSHs" ],
17671767

17681768
[ 0, 0, qr/\bXSRETURN\(3\)/, "has XSRETURN(3)" ],

0 commit comments

Comments
 (0)