We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecaade0 commit 2b84c59Copy full SHA for 2b84c59
src/parse-engines/parse-engine-registry.ts
@@ -4,7 +4,7 @@ import HtmlParseEngine from "./types/html-parse-engine";
4
5
class ParseEngineRegistry {
6
public static getParseEngine(languageId: string): IParseEngine {
7
- const foundParseEngine = ParseEngineRegistry.registry.find((value) => value.languageId === languageId);
+ const foundParseEngine = ParseEngineRegistry.registry.find((value) => value.languageId.split(',').includes(languageId));
8
9
if (!foundParseEngine) {
10
throw new Error(`Could not find a parse engine for the provided language id ("${languageId}").`);
0 commit comments