File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ const absoluteToRequest = (context, maybeAbsolutePath) => {
27
27
splitPath [ 0 ] = path . win32 . relative ( context , splitPath [ 0 ] ) ;
28
28
if ( ! / ^ [ a - z A - Z ] : \\ / . test ( splitPath [ 0 ] ) ) {
29
29
splitPath [ 0 ] = splitPath [ 0 ] . replace ( / \\ / g, "/" ) ;
30
- if ( ! / ^ ( \. \. \/ | [ a - z A - Z ] : \\ ) / . test ( splitPath [ 0 ] ) ) {
30
+ if ( ! / ^ \. \. \/ / . test ( splitPath [ 0 ] ) ) {
31
31
splitPath [ 0 ] = "./" + splitPath [ 0 ] ;
32
32
}
33
33
}
34
34
return splitPath . join ( "?" ) ;
35
35
} else if ( / ^ \/ / . test ( maybeAbsolutePath ) ) {
36
36
const splitPath = maybeAbsolutePath . split ( "?" , 2 ) ;
37
37
splitPath [ 0 ] = path . posix . relative ( context , splitPath [ 0 ] ) ;
38
- if ( ! / ^ ( \. \. \/ | \/ ) / . test ( splitPath [ 0 ] ) ) {
38
+ if ( ! / ^ \. \. \/ / . test ( splitPath [ 0 ] ) ) {
39
39
splitPath [ 0 ] = "./" + splitPath [ 0 ] ;
40
40
}
41
41
return splitPath . join ( "?" ) ;
You can’t perform that action at this time.
0 commit comments