diff --git a/src/ctags.cc b/src/ctags.cc index 32f048e..90a4cc8 100644 --- a/src/ctags.cc +++ b/src/ctags.cc @@ -11,11 +11,10 @@ std::pair> Ctags::get_result(const boost::filesystem::path &path) { auto build = Project::Build::create(path); auto run_path = build->project_path; - std::string exclude; + std::string exclude = " --exclude=node_modules"; if(!run_path.empty()) { exclude += " --exclude=" + filesystem::get_relative_path(build->get_default_path(), run_path).string(); exclude += " --exclude=" + filesystem::get_relative_path(build->get_debug_path(), run_path).string(); - exclude += " --exclude=node_modules"; } else { boost::system::error_code ec;