mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 00:15:46 +01:00
Localization-related changes. Fix dead help links.
This commit is contained in:
@@ -691,11 +691,13 @@ var Option = Class("Option", {
|
||||
if (!acceptable)
|
||||
acceptable = context.allItems.items.map(function (item) [item.text]);
|
||||
}
|
||||
if (this.type === "regexpmap" || this.type === "sitemap")
|
||||
return Array.concat(values).every(function (re) acceptable.some(function (item) item[0] == re.result));
|
||||
|
||||
if (isArray(acceptable))
|
||||
acceptable = set(acceptable.map(function ([k]) k));
|
||||
|
||||
if (this.type === "regexpmap" || this.type === "sitemap")
|
||||
return Array.concat(values).every(function (re) set.has(acceptable, re.result));
|
||||
|
||||
return Array.concat(values).every(set.has(acceptable));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user