mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
allow leading dot in extension names in fs resolve
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user