1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:17: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)
{
liberator.dump(hintStrings);
if (hintStrings.length == 1 && hintStrings[0].length == 0)
return true;
let words = tokenize(linkText, wordSplitRegex);
liberator.dump(words);
let words = tokenize(wordSplitRegex, linkText);
if (hintStrings.length == 1)
return charsAtBeginningOfWords(hintStrings[0], words, allowWordOverleaping);
else