mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:17:57 +01:00
added "custom" for hintmatching, thanks trapezoid
This commit is contained in:
@@ -535,6 +535,7 @@ liberator.Hints = function () //{{{
|
||||
case "contains" : return containsMatcher(hintString);
|
||||
case "wordstartswith": return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ true);
|
||||
case "firstletters" : return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ false);
|
||||
case "custom" : return liberator.plugins.customHintMatcher(hintString);
|
||||
default : liberator.echoerr("Invalid hintmatching type: " + hintMatching);
|
||||
}
|
||||
return null;
|
||||
@@ -588,7 +589,7 @@ liberator.Hints = function () //{{{
|
||||
"How links are matched",
|
||||
"string", "contains",
|
||||
{
|
||||
validator: function (value) { return /^contains|wordstartswith|firstletters$/.test(value); }
|
||||
validator: function (value) { return /^(?:contains|wordstartswith|firstletters|custom)$/.test(value); }
|
||||
});
|
||||
|
||||
liberator.options.add(["wordseparators", "wsp"],
|
||||
|
||||
Reference in New Issue
Block a user