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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user