[web-downloads] main: Fix vs version regex in WinlibsCommand

From: Date: Fri, 02 Jan 2026 13:56:24 +0000
Subject: [web-downloads] main: Fix vs version regex in WinlibsCommand
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33491@lists.php.net to get a copy of this message
Author: Shivam Mathur (shivammathur) Date: 2026-01-02T19:26:07+05:30 Commit: https://github.com/php/web-downloads/commit/2498f530d30b9f2312cee8425b2ee29a99b38246 Raw diff: https://github.com/php/web-downloads/commit/2498f530d30b9f2312cee8425b2ee29a99b38246.diff Fix vs version regex in WinlibsCommand Changed paths: M src/Console/Command/WinlibsCommand.php Diff: diff --git a/src/Console/Command/WinlibsCommand.php b/src/Console/Command/WinlibsCommand.php index 80a6cf1..7392327 100644 --- a/src/Console/Command/WinlibsCommand.php +++ b/src/Console/Command/WinlibsCommand.php @@ -76,7 +76,7 @@ public function parseFiles(array $files): array $data = []; foreach ($files as $file) { $fileName = basename($file); - $pattern = '/^(?P<artifact>.+?)-(?P<version>\d.*)-(?P<vs>vs\d+)-(?P<arch>[^.]+)\.zip$/'; + $pattern = '/^(?P<artifact>.+?)-(?P<version>\d.*)-(?P<vs>v[c|s]\d+)-(?P<arch>[^.]+)\.zip$/'; preg_match($pattern, $fileName, $matches); $data[] = [ 'file_path' => $file,

« previous php.webmaster (#33491) next »