Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
ensure windows URLs use / not \
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 24, 2015
1 parent d5cd66f commit 9ba5b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
}
function toAbsoluteURL(base, href) {

if (isWindows)
href = href.replace(/\\/g, '/');

href = parseURI(href || '');
base = parseURI(base || '');

Expand Down

1 comment on commit 9ba5b86

@basarat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good move 👍 FWIW I find the TypeScript team does the same 🌹

Please # to comment.