Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84efafe commit 6ed96f4Copy full SHA for 6ed96f4
lib/fileExists.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const { accessSync, F_OK} = require('fs');
+const { accessSync, F_OK } = require('fs');
4
5
function fileExists(path) {
6
try {
lib/index.js
@@ -11,7 +11,7 @@ var fileExists = require('./fileExists');
11
*/
12
function rewire(filename) {
13
// is not a node_module path
14
- if (!filename.match(/^[a-zA-Z\_]/) || filename.match(/^[A-Z]:)) {
+ if (!filename.match(/^[a-zA-Z\_]/) || filename.match(/^[A-Z]:[\\\/]/)) {
15
if (!fileExists(filename)) {
16
// create a __get__ mock to prevent tests breaking
17
// when file does not exist
0 commit comments