From 90cf3147fddcfb5a73c2dbe46ef94d7a3240f05c Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Sat, 9 Sep 2023 14:51:24 +0200 Subject: [PATCH] Formatting --- javascript/ext_wildcards.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/ext_wildcards.js b/javascript/ext_wildcards.js index 324644e..cde0421 100644 --- a/javascript/ext_wildcards.js +++ b/javascript/ext_wildcards.js @@ -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]; @@ -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); }); @@ -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], [], "/");