Skip to content

Commit d03fbe1

Browse files
committed
Fix search of system libraries
1 parent 4aad102 commit d03fbe1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/has_lib.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ function hasSystemLib (lib) {
4545
}
4646

4747
// Try checking common library locations
48+
const libNameRegex = new RegExp(libName)
49+
4850
return SYSTEM_PATHS.some(function (systemPath) {
4951
try {
5052
var dirListing = fs.readdirSync(systemPath)

0 commit comments

Comments
 (0)