File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ jobs:
3030
3131 steps :
3232 - name : Checkout source
33- uses : actions/checkout@v4
33+ uses : actions/checkout@v6
3434
3535 - name : Install Node ${{ matrix.node }}
36- uses : actions/setup-node@v4
36+ uses : actions/setup-node@v6
3737 with :
3838 node-version : ${{ matrix.node }}
3939
@@ -65,10 +65,10 @@ jobs:
6565
6666 steps :
6767 - name : Checkout source
68- uses : actions/checkout@v4
68+ uses : actions/checkout@v6
6969
7070 - name : Install Node
71- uses : actions/setup-node@v4
71+ uses : actions/setup-node@v6
7272 with :
7373 node-version : lts/*
7474
@@ -110,8 +110,8 @@ jobs:
110110 contents : write
111111 id-token : write
112112 steps :
113- - uses : actions/checkout@v4
114- - uses : actions/setup-node@v4
113+ - uses : actions/checkout@v6
114+ - uses : actions/setup-node@v6
115115 with :
116116 node-version : lts/*
117117 registry-url : https://registry.npmjs.org
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const jsonPointerTilde = /~0/g;
77
88import { isWindows } from "./is-windows.js" ;
99
10- const isAbsoluteWin32Path = / ^ [ a - z A - Z ] : \\ / ;
10+ const isAbsoluteWin32Path = / ^ [ a - z A - Z ] : [ \\ / ] / ;
1111
1212// RegExp patterns to URL-encode special characters in local filesystem paths
1313const urlEncodePatterns = [
Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ if (!process.env.BROWSER) {
3737 . and . toSatisfy ( ( msg : string ) => msg . startsWith ( "Y:/A/Random/Path" ) ) ;
3838 } ) ;
3939
40+ it ( "should treat forward-slash drive-letter paths as absolute" , async ( ) => {
41+ const result = $url . fromFileSystemPath ( "C:/A/Random/Path/file.json" ) ;
42+ expect ( result )
43+ . to . be . a ( "string" )
44+ . and . toSatisfy ( ( msg : string ) => msg . startsWith ( "C:/A/Random/Path/file.json" ) ) ;
45+ } ) ;
46+
4047 it ( "should handle relative paths" , async ( ) => {
4148 const result = $url . fromFileSystemPath ( "Path\\file.json" ) ;
4249 const pwd = convertPathToPosix ( cwd ( ) ) ;
You can’t perform that action at this time.
0 commit comments