File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ function ($matches) {
205205 // that is used as the regex. The 2 backslash are then the way to get 1 backslash
206206 // character into the character set "a forward slash or a backslash"
207207 if (isset ($ result ['scheme ' ]) && 'file ' === $ result ['scheme ' ] && isset ($ result ['path ' ]) &&
208- preg_match ('/^(?<windows_path> [a-zA-Z]:[\/ \\\\].*)$/x ' , $ result ['path ' ])) {
208+ preg_match ('/^(?<windows_path> [a-zA-Z]:( [\/ \\\\].*)? )$/x ' , $ result ['path ' ])) {
209209 $ result ['path ' ] = '/ ' .$ result ['path ' ];
210210 $ result ['host ' ] = '' ;
211211 }
Original file line number Diff line number Diff line change @@ -250,6 +250,18 @@ public function parseData(): array
250250 'fragment ' => null ,
251251 ],
252252 ],
253+ [
254+ 'file:///C: ' ,
255+ [
256+ 'scheme ' => 'file ' ,
257+ 'host ' => '' ,
258+ 'path ' => '/C: ' ,
259+ 'port ' => null ,
260+ 'user ' => null ,
261+ 'query ' => null ,
262+ 'fragment ' => null ,
263+ ],
264+ ],
253265 ];
254266 }
255267}
You can’t perform that action at this time.
0 commit comments