From 26ad70541a8b6d2a2b00182f352c109a293e469d Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 30 Mar 2009 17:53:57 +0200 Subject: [PATCH] fix space stripping of urls --- common/content/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/util.js b/common/content/util.js index ce1705d4..6515d930 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -671,7 +671,7 @@ const util = { //{{{ let proto = url.match(/^([-\w]+):/); if (proto && Cc["@mozilla.org/network/protocol;1?name=" + proto[1]]) // Handle as URL, but remove spaces. Useful for copied/'p'asted URLs. - return url.replace(/\s+/g, ""); + return url.replace(/\s*\n+\s*/g, ""); // Ok, not a valid proto. If it looks like URL-ish (foo.com/bar), // let Gecko figure it out.