Avoid warning about uninitialized value in MSVC python3 tests
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 10 Jan 2022 15:08:44 +0000 (10:08 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 10 Jan 2022 15:12:31 +0000 (10:12 -0500)
Juan José Santamaría Flecha

Backpatch to all live branches

src/tools/msvc/vcregress.pl

index d9a6425b33bdfb08c739d0cd71a917c398a74197..2d5980eb579736299f29aaa6592db54b0db8f2fe 100644 (file)
@@ -314,7 +314,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);