1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:57:59 +01:00

XPath validators for 'extendhinttags', 'nextpattern', 'prevpattern'.

This commit is contained in:
Kris Maglione
2010-09-28 16:31:00 -04:00
parent 84ae493dfb
commit 50c1c568a2
5 changed files with 53 additions and 42 deletions

View File

@@ -1639,11 +1639,13 @@ const Buffer = Module("buffer", {
options: function () {
options.add(["nextpattern"],
"Patterns to use when guessing the 'next' page in a document sequence",
"stringlist", UTF8("\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b"));
"stringlist", UTF8("\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b"),
{ validator: Option.validateXPath });
options.add(["previouspattern"],
"Patterns to use when guessing the 'previous' page in a document sequence",
"stringlist", UTF8("\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$"));
"stringlist", UTF8("\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$"),
{ validator: Option.validateXPath });
options.add(["pageinfo", "pa"],
"Desired info in the :pageinfo output",