mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 04:52:27 +01:00
Fix use of String#replace flags parameter.
It is deprecated. See https://bugzil.la/1142351.
This commit is contained in:
@@ -741,7 +741,7 @@ var File = Class("File", {
|
||||
path = OS.Path.join(OS.Constants.Path.homeDir,
|
||||
path.substr(2));
|
||||
|
||||
return OS.Path.normalize(path.replace("/", File.PATH_SEP, "g"));
|
||||
return OS.Path.normalize(path.replace(/\//g, File.PATH_SEP));
|
||||
},
|
||||
|
||||
expandPathList: function (list) list.map(this.expandPath),
|
||||
|
||||
Reference in New Issue
Block a user