@@ -58,9 +58,9 @@ function lolcation(loc) {
5858 , key ;
5959
6060 if ( 'blob:' === loc . protocol ) {
61- finaldestination = new URL ( unescape ( loc . pathname ) , { } ) ;
61+ finaldestination = new Url ( unescape ( loc . pathname ) , { } ) ;
6262 } else if ( 'string' === type ) {
63- finaldestination = new URL ( loc , { } ) ;
63+ finaldestination = new Url ( loc , { } ) ;
6464 for ( key in ignore ) delete finaldestination [ key ] ;
6565 } else if ( 'object' === type ) {
6666 for ( key in loc ) {
@@ -146,9 +146,9 @@ function resolve(relative, base) {
146146 * @param {Boolean|Function } parser Parser for the query string.
147147 * @api public
148148 */
149- function URL ( address , location , parser ) {
150- if ( ! ( this instanceof URL ) ) {
151- return new URL ( address , location , parser ) ;
149+ function Url ( address , location , parser ) {
150+ if ( ! ( this instanceof Url ) ) {
151+ return new Url ( address , location , parser ) ;
152152 }
153153
154154 var relative , extracted , parse , instruction , index , key
@@ -400,14 +400,14 @@ function toString(stringify) {
400400 return result ;
401401}
402402
403- URL . prototype = { set : set , toString : toString } ;
403+ Url . prototype = { set : set , toString : toString } ;
404404
405405//
406406// Expose the URL parser and some additional properties that might be useful for
407407// others or testing.
408408//
409- URL . extractProtocol = extractProtocol ;
410- URL . location = lolcation ;
411- URL . qs = qs ;
409+ Url . extractProtocol = extractProtocol ;
410+ Url . location = lolcation ;
411+ Url . qs = qs ;
412412
413- module . exports = URL ;
413+ module . exports = Url ;
0 commit comments