mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix 'pextpattern'/'prevpattern' quoting and remove spurious XPath validators. Closes issue #28.
This commit is contained in:
@@ -1639,13 +1639,11 @@ const Buffer = Module("buffer", {
|
|||||||
options: function () {
|
options: function () {
|
||||||
options.add(["nextpattern"],
|
options.add(["nextpattern"],
|
||||||
"Patterns to use when guessing the 'next' page in a document sequence",
|
"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"],
|
options.add(["previouspattern"],
|
||||||
"Patterns to use when guessing the 'previous' page in a document sequence",
|
"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"],
|
options.add(["pageinfo", "pa"],
|
||||||
"Desired info in the :pageinfo output",
|
"Desired info in the :pageinfo output",
|
||||||
|
|||||||
Reference in New Issue
Block a user