mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:12:29 +02:00
Fix hint matching
This commit is contained in:
1 parent
e7a7093f0d
commit
b8b708abcb
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user