Skip to content

Commit bb7a15d

Browse files
committed
component-updates: handle the new format of cURL's updates
The most recent RSS feed item calls the version `curl-8_1_1`, where the previous one called it `8.1.0`. Let's accommodate for that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e98b5a2 commit bb7a15d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

GitForWindowsHelper/component-updates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const guessComponentUpdateDetails = (title, body) => {
1111
else if (package_name === 'cygwin') package_name = 'msys2-runtime'
1212

1313
version = version
14-
.replace(/^(GCM |openssl-|OpenSSL_|v|V_|GnuTLS |tig-|Heimdal |cygwin-|PCRE2-|Bash-)/, '')
14+
.replace(/^(GCM |openssl-|OpenSSL_|v|V_|GnuTLS |tig-|Heimdal |cygwin-|PCRE2-|Bash-|curl-)/, '')
1515
.replace(/\s+patch\s+/, '.')
1616
.replace(/_/g, '.')
1717
.replace(/-release$/, '')

__tests__/component-updates.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test('guessComponentUpdateDetails()', () => {
2929
['[New openssh version] V_9_2_P1', 'openssh', '9.2.P1'],
3030
['[New tig version] tig-2.5.8', 'tig', '2.5.8'],
3131
['[New curl version] 7.87.0', 'curl', '7.87.0'],
32+
['[New curl version] curl-8_1_1', 'curl', '8.1.1'],
3233
['[New mintty version] 3.6.3', 'mintty', '3.6.3'],
3334
['[New pcre2 version] PCRE2-10.42', 'pcre2', '10.42'],
3435
['[New git-lfs version] v3.3.0', 'mingw-w64-git-lfs', '3.3.0'],

0 commit comments

Comments
 (0)