Skip to content

Commit 2b84c59

Browse files
support other css language
1 parent ecaade0 commit 2b84c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse-engines/parse-engine-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import HtmlParseEngine from "./types/html-parse-engine";
44

55
class ParseEngineRegistry {
66
public static getParseEngine(languageId: string): IParseEngine {
7-
const foundParseEngine = ParseEngineRegistry.registry.find((value) => value.languageId === languageId);
7+
const foundParseEngine = ParseEngineRegistry.registry.find((value) => value.languageId.split(',').includes(languageId));
88

99
if (!foundParseEngine) {
1010
throw new Error(`Could not find a parse engine for the provided language id ("${languageId}").`);

0 commit comments

Comments
 (0)