mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-10 12:45:53 +01:00
Add validation to revision d91ffd3a7b40.
This commit is contained in:
@@ -687,13 +687,6 @@ var Option = Class("Option", {
|
||||
if (this.type === "regexpmap" || this.type === "sitemap")
|
||||
return Array.concat(values).every(function (re) acceptable.some(function (item) item[0] == re.result));
|
||||
return Array.concat(values).every(function (value) acceptable.some(function (item) item[0] == value));
|
||||
},
|
||||
|
||||
validateXPath: function (values) {
|
||||
return true; // For now.
|
||||
let evaluator = services.XPathEvaluator();
|
||||
return this.testValues(values,
|
||||
function (value) evaluator.createExpression(value, util.evaluateXPath.resolver));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user