Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ed96f4

Browse files
committed
fixes for windows paths
1 parent84efafe commit6ed96f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/fileExists.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const{ accessSync,F_OK}=require('fs');
3+
const{ accessSync,F_OK}=require('fs');
44

55
functionfileExists(path){
66
try{

‎lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var fileExists = require('./fileExists');
1111
*/
1212
functionrewire(filename){
1313
// is not a node_module path
14-
if(!filename.match(/^[a-zA-Z\_]/)||filename.match(/^[A-Z]:)){
14+
if(!filename.match(/^[a-zA-Z\_]/)||filename.match(/^[A-Z]:[\\\/]/)){
1515
if(!fileExists(filename)){
1616
// create a __get__ mock to prevent tests breaking
1717
// when file does not exist

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp