From 568f4279d8de2b9e67e34b0d1332ae654f42d51e Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Fri, 2 Jun 2017 15:42:36 -0400 Subject: [PATCH] BugFix: ensure files added via ensureFile are have file paths normalized --- lib/tern.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tern.js b/lib/tern.js index 82d627ab..888f50b1 100644 --- a/lib/tern.js +++ b/lib/tern.js @@ -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) {