From 0227b11bf32060b2ed4fce225c69fd1086b80b56 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 1 May 2012 14:26:32 -0700 Subject: [PATCH] Fix syntax error in fs.base --- src/stdlib/fs.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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