mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05: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