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

[email protected] (Shivam Mathur)
Newsgroups php.webmaster
Message-ID <[email protected]>
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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.