File tree 2 files changed +2
-1
lines changed
packages/angular_devkit/core/src/virtual-fs
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ export function normalize(path: string): Path {
204
204
205
205
// Match absolute windows path.
206
206
const original = path ;
207
- if ( path . match ( / ^ [ A - Z ] : [ \/ \\ ] / ) ) {
207
+ if ( path . match ( / ^ [ A - Z ] : [ \/ \\ ] / i ) ) {
208
208
path = '\\' + path [ 0 ] + '\\' + path . substr ( 3 ) ;
209
209
}
210
210
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ describe('path', () => {
70
70
expect ( normalize ( '\\a\\b\\c' ) ) . toBe ( '/a/b/c' ) ;
71
71
expect ( normalize ( '.\\a\\b\\c' ) ) . toBe ( 'a/b/c' ) ;
72
72
expect ( normalize ( 'C:\\a\\b\\c' ) ) . toBe ( '/C/a/b/c' ) ;
73
+ expect ( normalize ( 'c:\\a\\b\\c' ) ) . toBe ( '/c/a/b/c' ) ;
73
74
expect ( normalize ( 'A:\\a\\b\\c' ) ) . toBe ( '/A/a/b/c' ) ;
74
75
expect ( ( ) => normalize ( 'A:\\..\\..' ) )
75
76
. toThrow ( new InvalidPathException ( 'A:\\..\\..' ) ) ;
You can’t perform that action at this time.
0 commit comments