mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 07:02:28 +01:00
Normalise the use of "regexp(s)" vs "regex(es)".
"regex" won the Google battle.
This commit is contained in:
@@ -121,7 +121,7 @@ function Browser() //{{{
|
||||
}
|
||||
|
||||
options.add(["urlseparator"],
|
||||
"Set the separator regexp used to separate multiple URL args",
|
||||
"Set the separator regex used to separate multiple URL args",
|
||||
"string", ",\\s");
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -859,7 +859,7 @@ function CommandLine() //{{{
|
||||
// At the moment, adding "<Tab>" breaks tab completion. Adding
|
||||
// "<CR>" has no effect.
|
||||
// TODO: Make non-keyword recognition smarter so that there need not
|
||||
// be two lists of the same characters (one here and a regexp in
|
||||
// be two lists of the same characters (one here and a regex in
|
||||
// mappings.js)
|
||||
mappings.add(myModes,
|
||||
["<Space>", '"', "'"], "Expand command line abbreviation",
|
||||
|
||||
Reference in New Issue
Block a user