Skip to content

Commit 2904d7e

Browse files
jloehelnodkz
authored andcommitted
fix(MongoBinaryDownloadUrl.ts): Add current openSUSE Leap relase version
Add current openSUSE Leap release version (15) to the regular expression. The change should fix the creation of the DownloadURL for openSUSE Leap 15.x. Only tested on openSUSE Leap 15.3. Signed-off-by: Jürgen Löhel <[email protected]>
1 parent 5bed129 commit 2904d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
330330
* @param os LinuxOS Object
331331
*/
332332
getSuseVersionString(os: LinuxOS): string {
333-
const releaseMatch: RegExpMatchArray | null = os.release.match(/(^11|^12)/);
333+
const releaseMatch: RegExpMatchArray | null = os.release.match(/(^11|^12|^15)/);
334334

335335
return releaseMatch ? `suse${releaseMatch[0]}` : '';
336336
}

0 commit comments

Comments
 (0)