From fd549f0385bf37bf4715c14c85db842954038106 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Sat, 21 Jan 2012 00:26:03 +0100 Subject: make failing test pass again :) --- lib/utils.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 922e7db3..e23799d8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -114,6 +114,8 @@ var utils = { * We don't bother with escaping characters, however, as Chrome will do that for us. */ ensureUrl: function(str) { + // trim str + str = str.replace(/^\s+|\s+$/g, ''); if (utils.isUrl(str)) return utils.createFullUrl(str); else -- cgit v1.2.3