Skip to content

Commit 287bcb9

Browse files
committed
fix(MongoInstance::checkErrorInLine): fix regex for "cannot open shared object"
1 parent 4b57634 commit 287bcb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
607607
)
608608
);
609609
}
610-
if (/lib[\w-.]+(?=: cannot open shared object)/i.test(line)) {
610+
if (/lib[^:]+(?=: cannot open shared object)/i.test(line)) {
611611
const lib =
612-
line.match(/(lib[\w-.]+)(?=: cannot open shared object)/i)?.[1].toLocaleLowerCase() ??
612+
line.match(/(lib[^:]+)(?=: cannot open shared object)/i)?.[1].toLocaleLowerCase() ??
613613
'unknown';
614614
this.emit(
615615
MongoInstanceEvents.instanceError,

0 commit comments

Comments
 (0)