Avoid warning about uninitialized value in MSVC python3 tests
authorAndrew Dunstan
Mon, 10 Jan 2022 15:08:44 +0000 (10:08 -0500)
committerAndrew Dunstan
Mon, 10 Jan 2022 15:12:23 +0000 (10:12 -0500)
Juan José Santamaría Flecha

Backpatch to all live branches

src/tools/msvc/vcregress.pl

index 03a5d976afb02043267ea9924f41dd15233d67fb..c94b2abc872e5211aedc40ae21de9cfe2dc66b9c 100644 (file)
@@ -347,7 +347,7 @@ sub mangle_plpython3
                    s/([ [{])u'/$1'/g;
                    s/def next/def __next__/g;
                    s/LANGUAGE plpython2?u/LANGUAGE plpython3u/g;
-                   s/EXTENSION ([^ ]*_)*plpython2?u/EXTENSION $1plpython3u/g;
+                   s/EXTENSION (\S*?)plpython2?u/EXTENSION $1plpython3u/g;
                    s/installing required extension "plpython2u"/installing required extension "plpython3u"/g;
                  }
                  for ($contents);