From d4ae7988dad88af608db9cf34992c9c748eda6aa Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 16 Mar 2012 12:55:54 -0700 Subject: chore(parseInt): cleanup parseInt() for our int() --- src/service/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/service/location.js') diff --git a/src/service/location.js b/src/service/location.js index a7ff103b..1accb993 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -30,7 +30,7 @@ function matchUrl(url, obj) { match = { protocol: match[1], host: match[3], - port: parseInt(match[5], 10) || DEFAULT_PORTS[match[1]] || null, + port: int(match[5]) || DEFAULT_PORTS[match[1]] || null, path: match[6] || '/', search: match[8], hash: match[10] -- cgit v1.2.3