Skip to content

Commit fda4f72

Browse files
committedOct 9, 2020
fix(MongoBinaryDownloadUrl): detect "linuxmint" and "linux mint" as linux mint
closes #403
1 parent 3acd086 commit fda4f72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default class MongoBinaryDownloadUrl {
144144
return this.getFedoraVersionString(os);
145145
} else if (/debian/i.test(os.dist)) {
146146
return this.getDebianVersionString(os);
147-
} else if (/\s+mint\s*$/i.test(os.dist)) {
147+
} else if (/^linux\s?mint\s*$/i.test(os.dist)) {
148148
return this.getMintVersionString(os);
149149
} else if (/arch/i.test(os.dist)) {
150150
console.warn('There is no offical build of MongoDB for ArchLinux!');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ describe('MongoBinaryDownloadUrl', () => {
315315
expect(
316316
downloadUrl.getMintVersionString({
317317
os: 'linux',
318-
dist: 'Linux Mint',
318+
dist: 'LinuxMint',
319319
release: '19',
320320
})
321321
).toBe('ubuntu1804');

0 commit comments

Comments
 (0)
Please sign in to comment.