summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-01-03 22:24:14 +1100
committerDoug Kearns <dougkearns@gmail.com>2011-01-03 22:24:14 +1100
commit835fabb62d075c5c93d36ff877c88543cfa33ec4 (patch)
treefc09aadd5976cf798f9fe70eb76af2c3911cc5fe
parent6117ad098a1275eb9b75820ad558673f10894d9f (diff)
downloadpentadactyl-835fabb62d075c5c93d36ff877c88543cfa33ec4.tar.gz
Fix "invalid character class" error on FF 3.6.
Closes issue #230.
-rw-r--r--common/content/bookmarks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js
index 9c80b2f6..05314274 100644
--- a/common/content/bookmarks.js
+++ b/common/content/bookmarks.js
@@ -199,7 +199,7 @@ var Bookmarks = Module("bookmarks", {
return array(services.browserSearch.getVisibleEngines({})).map(function (engine) {
let alias = engine.alias;
if (!alias || !/^[a-z_-]+$/.test(alias))
- alias = engine.name.replace(/^\W*([a-zA-Z_-\s]+).*/, "$1").replace(/\s+/g, "-").toLowerCase();
+ alias = engine.name.replace(/^\W*([a-zA-Z\s_-]+).*/, "$1").replace(/\s+/g, "-").toLowerCase();
if (!alias)
alias = "search"; // for search engines which we can't find a suitable alias