From da892236aac92128edc44c6b5afb94470b925e69 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 9 Dec 2008 01:51:01 +0100 Subject: [PATCH] Fixed whitespace. Ted: Put a space between if and (, but not after the ( --- common/content/util.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/content/util.js b/common/content/util.js index ced4c9a0..4699ac48 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -489,9 +489,8 @@ const util = { //{{{ // then assume that we want to defsearch (or bookmark // keyword) it. Otherwise, let Firefox figure it out let proto = url.match(/^([-\w]+):/); - if( ( /\s/.test(url) || !/\./.test(url) ) - && - !( proto && Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]] ) ) + if ((/\s/.test(url) || !/\./.test(url)) && + !(proto && Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]])) { // TODO: it would be clearer if the appropriate call to // getSearchURL was made based on whether or not the first word was