1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:07:58 +01:00

Fix hint matching

This commit is contained in:
Kris Maglione
2008-12-20 01:09:50 -05:00
parent e7a7093f0d
commit b8b708abcb

View File

@@ -499,11 +499,12 @@ function Hints() //{{{
return function (linkText) return function (linkText)
{ {
liberator.dump(hintStrings);
if (hintStrings.length == 1 && hintStrings[0].length == 0) if (hintStrings.length == 1 && hintStrings[0].length == 0)
return true; return true;
let words = tokenize(linkText, wordSplitRegex); let words = tokenize(wordSplitRegex, linkText);
liberator.dump(words);
if (hintStrings.length == 1) if (hintStrings.length == 1)
return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping); return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping);
else else