mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 22:13:31 +01:00
Fixed whitespace. Ted: Put a space between if and (, but not after the (
This commit is contained in:
@@ -489,9 +489,8 @@ const util = { //{{{
|
|||||||
// then assume that we want to defsearch (or bookmark
|
// then assume that we want to defsearch (or bookmark
|
||||||
// keyword) it. Otherwise, let Firefox figure it out
|
// keyword) it. Otherwise, let Firefox figure it out
|
||||||
let proto = url.match(/^([-\w]+):/);
|
let proto = url.match(/^([-\w]+):/);
|
||||||
if( ( /\s/.test(url) || !/\./.test(url) )
|
if ((/\s/.test(url) || !/\./.test(url)) &&
|
||||||
&&
|
!(proto && Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]]))
|
||||||
!( proto && Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]] ) )
|
|
||||||
{
|
{
|
||||||
// TODO: it would be clearer if the appropriate call to
|
// TODO: it would be clearer if the appropriate call to
|
||||||
// getSearchURL was made based on whether or not the first word was
|
// getSearchURL was made based on whether or not the first word was
|
||||||
|
|||||||
Reference in New Issue
Block a user