1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 22:35:45 +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

@@ -493,7 +493,7 @@ const File = Class("File", {
// expand ~
// Yuck.
if (!relative && RegExp("~(?:$|[/" + util.escapeRegexp(File.PATH_SEP) + "])").test(path)) {
if (!relative && RegExp("~(?:$|[/" + util.regexp.escape(File.PATH_SEP) + "])").test(path)) {
// Try $HOME first, on all systems
let home = getenv("HOME");