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

Commit 56189fc

Browse files
committed
update parseURI to fix #243
1 parent ddefbc8 commit 56189fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// Helpers
2121
// Absolute URL parsing, from https://gist.github.com/Yaffle/1088850
2222
function parseURI(url) {
23-
var m = String(url).replace(/^\s+|\s+$/g, '').match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);
23+
var m = String(url).replace(/^\s+|\s+$/g, '').match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);
2424
// authority = '//' + user + ':' + pass '@' + hostname + ':' port
2525
return (m ? {
2626
href : m[0] || '',

0 commit comments

Comments
 (0)