1
0
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:
Martin Stubenschrott
2008-06-16 13:19:25 +00:00
parent 24e390b587
commit ebbbd24097
2 changed files with 3 additions and 1 deletions

View File

@@ -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"],