From 0da19dfb315f7e1f261f6bb6a797756d2eac4ca4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 10 Oct 2008 18:03:09 +0000 Subject: [PATCH] Fix :se completion --- content/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/options.js b/content/options.js index d56b62d1..594c93f9 100644 --- a/content/options.js +++ b/content/options.js @@ -709,7 +709,7 @@ liberator.Options = function () //{{{ return [0, liberator.completion.filter(optionCompletions, filter)]; } - let prefix = filter.match(/^(no|inv)/)[0] || ""; + let prefix = (filter.match(/^(no|inv)/) || [""])[0]; if (prefix) filter = filter.substr(prefix.length);