Only relativize stuff under the project root

This commit is contained in:
John Barnette
2013-03-14 16:53:33 -07:00
parent b27a465e2f
commit 694b499b21

View File

@@ -87,6 +87,7 @@ class Project
fs.absolute filePath
relativize: (fullPath) ->
return fullPath unless fullPath.lastIndexOf(@getPath()) is 0
fullPath.replace(@getPath(), "").replace(/^\//, '')
getSoftTabs: -> @softTabs