We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477f75e commit 762356cCopy full SHA for 762356c
lib/Module/Metadata.pm
@@ -68,8 +68,10 @@ my $PKG_REGEXP = qr{ # match a package declaration
68
package # the word 'package'
69
\s+ # whitespace
70
($PKG_NAME_REGEXP) # a package name
71
- \s* # optional whitespace
72
- ($V_NUM_REGEXP)? # optional version number
+ (?:
+ \s+ # whitespace
73
+ ($V_NUM_REGEXP) # optional version number
74
+ )?
75
\s* # optional whitesapce
76
[;\{] # semicolon line terminator or block start (since 5.16)
77
}x;
0 commit comments