From 3e6400a91183c73a5c81f91031311f0e87d5bce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Wu=CC=88rbach?= Date: Mon, 30 Jul 2012 18:38:04 +0200 Subject: [PATCH] Parse URLs without trailing slash correctly. --- src/Core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core.js b/src/Core.js index 6fb1b3c9..50fe7a3b 100644 --- a/src/Core.js +++ b/src/Core.js @@ -27,7 +27,7 @@ var global = this; var channelId = Math.floor(Math.random() * 10000); // randomize the initial id in case of multiple closures loaded var emptyFn = Function.prototype; -var reURI = /^((http.?:)\/\/([^:\/\s]+)(:\d+)*)/; // returns groups for protocol (2), domain (3) and port (4) +var reURI = /^((http.?:)\/\/([^:\?\/\s]+)(:\d+)*)/; // returns groups for protocol (2), domain (3) and port (4) var reParent = /[\-\w]+\/\.\.\//; // matches a foo/../ expression var reDoubleSlash = /([^:])\/\//g; // matches // anywhere but in the protocol var namespace = ""; // stores namespace under which easyXDM object is stored on the page (empty if object is global)