From 5969e79ebcbfdede9c0b4f265b879073793b1d5f Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Tue, 22 Jan 2013 12:41:33 -0800 Subject: [PATCH] allow leading dot in extension names in fs resolve --- 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 976f3bb5f..39ae82334 100644 --- a/src/stdlib/fs.coffee +++ b/src/stdlib/fs.coffee @@ -143,7 +143,7 @@ module.exports = if extension == "" return path if @exists(path) else - pathWithExtension = path + "." + extension + pathWithExtension = path + "." + extension.replace(/^\./, "") return pathWithExtension if @exists(pathWithExtension) undefined