Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix: ensure files added via ensureFile are have file paths normalized #913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BugFix: ensure files added via ensureFile are have file paths normalized
  • Loading branch information
Min Idzelis committed Sep 18, 2018
commit 568f4279d8de2b9e67e34b0d1332ae654f42d51e
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