Skip to content

Commit

Permalink
BugFix: ensure files added via ensureFile are have file paths normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
Min Idzelis committed Jun 2, 2017
1 parent a4db155 commit 1c55e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tern.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
var queryType = queryTypes[query.type];
if (queryType.takesFile) {
if (typeof query.file != "string") return c(".query.file must be a string");
if (!/^#/.test(query.file)) ensureFile(srv, query.file, null);
if (!/^#/.test(query.file)) ensureFile(srv, srv.normalizeFilename(query.file), null);
}

analyzeAll(srv, timeBudget, function(err) {
Expand Down

0 comments on commit 1c55e9b

Please sign in to comment.