more flexible version matching when bumping Makefile.PL
Graham Knop [Mon, 20 Sep 2021 14:56:59 +0000 (16:56 +0200)]
lib/Distar/helpers/bump-version

index 2aad1fe..c7aee46 100755 (executable)
@@ -84,7 +84,7 @@ my $FILE_RE = qr{
   (.*)$
 }x;
 my $MAKE_RE = qr{
-  (^.* ['"]?version['"] \s* => \s* )
+  (^.* ['"]?(?:version|VERSION)['"]? \s* => \s* )
   (['"]?) v?([0-9]+(?:[._][0-9]+)*) \2
   ( \s*, )
   (?: