1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-27 03:43:32 +01:00

Rename util.(escapeRegexp|regexpSource) to util.regexp.(escape|getSource).

This commit is contained in:
Kris Maglione
2010-12-15 06:06:42 -05:00
parent 097309f28c
commit f07f067309
6 changed files with 23 additions and 25 deletions

View File

@@ -86,7 +86,7 @@ const AutoCommands = Module("autocommands", {
+
template.map(items, function (item)
<tr>
<td>&#xa0;{util.regexpSource(item.pattern)}</td>
<td>&#xa0;{util.regexp.getSource(item.pattern)}</td>
<td>{item.command}</td>
</tr>))
}
@@ -114,7 +114,7 @@ const AutoCommands = Module("autocommands", {
for (let [, autoCmd] in Iterator(autoCmds)) {
if (autoCmd.pattern.test(url) ^ !autoCmd.pattern.result) {
if (!lastPattern || lastPattern.source != autoCmd.pattern.source)
dactyl.echomsg("Executing " + event + " Auto commands for " + util.regexpSource(autoCmd.pattern).quote(), 8);
dactyl.echomsg("Executing " + event + " Auto commands for " + util.regexp.getSource(autoCmd.pattern).quote(), 8);
lastPattern = autoCmd.pattern;
dactyl.echomsg("autocommand " + autoCmd.command, 9);