diff --git a/src/stdlib/fs.coffee b/src/stdlib/fs.coffee index 968cbfa6a..e7f9e1b8d 100644 --- a/src/stdlib/fs.coffee +++ b/src/stdlib/fs.coffee @@ -15,7 +15,7 @@ module.exports = # remove a trailing extension. base: (path, ext) -> base = path.replace(/\/$/, '').split("/").pop() - if ext then base.replace(RegEx(ext + "$"), "") else base + if ext then base.replace(RegExp(ext + "$"), "") else base # Returns the path of a file's containing directory, albeit the # parent directory if the file is a directory. A terminal directory