Skip to content

Commit 3d59c7a

Browse files
committed
Merge commit 'f672e0cdb5cd5b1d065cdc51fc7c337a7708b4f4'
2 parents f9ced1a + f672e0c commit 3d59c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/coffee-script/command.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/command.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ compilePath = (source, topLevel, base) ->
8888
fs.stat source, (err, stats) ->
8989
throw err if err and err.code isnt 'ENOENT'
9090
if err?.code is 'ENOENT'
91-
if topLevel and source[-7..] not in coffee_exts
91+
if topLevel and path.extname(source) not in coffee_exts
9292
source = sources[sources.indexOf(source)] = "#{source}.coffee"
9393
return compilePath source, topLevel, base
9494
if topLevel

0 commit comments

Comments
 (0)