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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user