From b711f928bfcd5a1fb35e5e9baf1e894086319944 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 29 Sep 2010 11:20:09 -0400 Subject: [PATCH] Fix 'pextpattern'/'prevpattern' quoting and remove spurious XPath validators. Closes issue #28. --- common/content/buffer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index ca8c175d..488c6508 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1639,13 +1639,11 @@ 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"), - { validator: Option.validateXPath }); + "stringlist", UTF8("'\\bnext\\b',^>$,^(>>|»)$,^(>|»),(>|»)$,'\\bmore\\b'")); options.add(["previouspattern"], "Patterns to use when guessing the 'previous' page in a document sequence", - "stringlist", UTF8("\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$"), - { validator: Option.validateXPath }); + "stringlist", UTF8("'\\bprev|previous\\b',^<$,^(<<|«)$,^(<|«),(<|«)$")); options.add(["pageinfo", "pa"], "Desired info in the :pageinfo output",