1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 19:52:25 +01:00

bug fix release

This commit is contained in:
Martin Stubenschrott
2007-05-02 12:55:19 +00:00
parent 06bf4d63d4
commit 80f7dd633f
3 changed files with 4 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ function getSearchEngines()
var firefox_engines = nsSS.getVisibleEngines({ });
for(var i in firefox_engines)
{
if (!firefox_engines[i].alias || !firefox_engines[i].alias.match(/^\w+$/))
if (!firefox_engines[i].alias || !firefox_engines[i].alias.match(/^[a-z0-9_]+$/))
{
var alias = firefox_engines[i].name.replace(/^\W*(\w+).*/, "$1").toLowerCase();
firefox_engines[i].alias = alias;