1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 15:25:45 +01:00

Normalise regex -> regexp.

This is what JS uses and using both is confusing.
This commit is contained in:
Doug Kearns
2010-10-22 12:03:03 +11:00
parent 5a42002243
commit 4f14857d66
14 changed files with 92 additions and 92 deletions

View File

@@ -1211,8 +1211,8 @@ const Dactyl = Module("dactyl", {
"string", "intro");
options.add(["loadplugins", "lpl"],
"A regex list that defines which plugins are loaded at startup and via :loadplugins",
"regexlist", "'\\.(js|" + config.fileExtension + ")$'");
"A regexp list that defines which plugins are loaded at startup and via :loadplugins",
"regexplist", "'\\.(js|" + config.fileExtension + ")$'");
options.add(["titlestring"],
"Change the title of the window",
@@ -1221,7 +1221,7 @@ const Dactyl = Module("dactyl", {
setter: function (value) {
let win = document.documentElement;
function updateTitle(old, current) {
document.title = document.title.replace(RegExp("(.*)" + util.escapeRegex(old)), "$1" + current);
document.title = document.title.replace(RegExp("(.*)" + util.escapeRegexp(old)), "$1" + current);
}
// TODO: remove this FF3.5 test when we no longer support 3.0
@@ -1247,7 +1247,7 @@ const Dactyl = Module("dactyl", {
});
options.add(["urlseparator", "us"],
"Set the separator regex used to separate multiple URL args",
"Set the separator regexp used to separate multiple URL args",
"string", "\\|");
options.add(["verbose", "vbs"],