File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -370,13 +370,17 @@ export function parseSrc(input) {
370370 return { value, startIndex } ;
371371}
372372
373- export function normalizeUrl ( url ) {
374- return decodeURI ( url ) . replace ( / [ \t \n \r ] / g, '' ) ;
375- }
376-
377373const moduleRequestRegex = / ^ [ ^ ? ] * ~ / ;
378374const matchNativeWin32Path = / ^ [ A - Z ] : [ / \\ ] | ^ \\ \\ / i;
379375
376+ export function normalizeUrl ( url ) {
377+ return matchNativeWin32Path . test ( url )
378+ ? decodeURI ( url ) . replace ( / [ \t \n \r ] / g, '' )
379+ : decodeURI ( url )
380+ . replace ( / [ \t \n \r ] / g, '' )
381+ . replace ( / \\ / g, '/' ) ;
382+ }
383+
380384export function requestify ( url ) {
381385 if ( matchNativeWin32Path . test ( url ) || url [ 0 ] === '/' ) {
382386 return url ;
Original file line number Diff line number Diff line change @@ -436,4 +436,9 @@ <h2>An Ordered HTML List</h2>
436436
437437< meta itemprop ="a " content ="./image.png " />
438438< meta itemprop ="b " content ="./image.png " />
439- < meta itemprop =" " content ="./image.png " />
439+ < meta itemprop =" " content ="./image.png " />
440+
441+ < img src ='.\nested\image3.png ' />
442+ < img src ='\nested\image3.png ' />
443+ < img src ='/nested\image3.png ' />
444+ < img src ='nested\image3.png ' />
You can’t perform that action at this time.
0 commit comments