Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDoom committed Sep 9, 2023
1 parent 4d4f23e commit 90cf314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/ext_wildcards.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WildcardParser extends BaseTagParser {
let wcPairs = wcFound || wildcardExtFiles.filter(x => x[1].toLowerCase() === wcFile);

if (!wcPairs) return [];

let wildcards = [];
for (let i = 0; i < wcPairs.length; i++) {
const basePath = wcPairs[i][0];
Expand Down Expand Up @@ -86,7 +86,7 @@ class WildcardFileParser extends BaseTagParser {
result = new AutocompleteResult(wcFile[1].trim(), ResultType.wildcardFile);
result.meta = "Wildcard file";
}

finalResults.push(result);
alreadyAdded.set(wcFile[1], true);
});
Expand Down Expand Up @@ -132,7 +132,7 @@ async function load() {

// Load the yaml wildcard json file and append it as a wildcard file, appending each key as a path component until we reach the end
yamlWildcards = await readFile(`${tagBasePath}/temp/wc_yaml.json`, true);

// Append each key as a path component until we reach a leaf
Object.keys(yamlWildcards).forEach(file => {
const flattened = flatten(yamlWildcards[file], [], "/");
Expand Down

0 comments on commit 90cf314

Please sign in to comment.