mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:58:03 +01:00
Normalise the use of "regexp(s)" vs "regex(es)".
"regex" won the Google battle.
This commit is contained in:
@@ -1137,7 +1137,7 @@ function Buffer() //{{{
|
||||
*/
|
||||
followDocumentRelationship: function (rel)
|
||||
{
|
||||
let regexps = options.get(rel + "pattern").values
|
||||
let regexes = options.get(rel + "pattern").values
|
||||
.map(function (re) RegExp(re, "i"));
|
||||
|
||||
function followFrame(frame)
|
||||
@@ -1167,7 +1167,7 @@ function Buffer() //{{{
|
||||
|
||||
// TODO: this should probably use the default 'hinttags' value. --djk
|
||||
let res = buffer.evaluateXPath(options["hinttags"], frame.document);
|
||||
for (let [,regex] in Iterator(regexps))
|
||||
for (let [,regex] in Iterator(regexes))
|
||||
{
|
||||
for (let i in util.range(res.snapshotLength, 0, -1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user