File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
553553 if ( / p e r m i s s i o n d e n i e d / i. test ( line ) ) {
554554 this . emit ( MongoInstanceEvents . instanceError , 'Mongod permission denied' ) ;
555555 }
556+ // Cannot fix CodeQL warning, without a example output of what to expect
556557 if ( / D a t a d i r e c t o r y .* ? n o t f o u n d / i. test ( line ) ) {
557558 this . emit ( MongoInstanceEvents . instanceError , 'Data directory not found' ) ;
558559 }
@@ -570,9 +571,9 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
570571 'You need to manually install libcurl4\n'
571572 ) ;
572573 }
573- if ( / l i b [ \w - . ] + : c a n n o t o p e n s h a r e d o b j e c t / i. test ( line ) ) {
574+ if ( / l i b [ \w - . ] + (? = : c a n n o t o p e n s h a r e d o b j e c t ) / i. test ( line ) ) {
574575 const lib =
575- line . match ( / ( l i b [ \w - . ] + ) : c a n n o t o p e n s h a r e d o b j e c t / i) ?. [ 1 ] . toLocaleLowerCase ( ) ??
576+ line . match ( / ( l i b [ \w - . ] + ) (? = : c a n n o t o p e n s h a r e d o b j e c t ) / i) ?. [ 1 ] . toLocaleLowerCase ( ) ??
576577 'unknown' ;
577578 this . emit (
578579 MongoInstanceEvents . instanceError ,
You can’t perform that action at this time.
0 commit comments