Skip to content

Commit 4a0c670

Browse files
authored
Merge branch 'main' into frameworks-frontend
2 parents ab2c478 + 571c139 commit 4a0c670

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/consolidateSnippets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ const index: LanguageType[] = [];
2323
for (const language of languages) {
2424
copyFileSync(language.icon, join(iconPath, `${slugify(language.name)}.svg`));
2525

26+
2627
const subLanguages: LanguageType["subLanguages"] = [];
2728

29+
2830
for (const subLanguage of language.subLanguages) {
2931
const joinedName = `${slugify(language.name)}--${slugify(subLanguage.name)}`;
3032
const iconName = `${joinedName}.svg`;

utils/snippetParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function parseSnippet(
7373
}
7474

7575
cursor += match[0].length;
76-
const extension = match[0].replace(/[\r\n`-]/g, "");
76+
const extension = match[0].replace(/[\r\n`-]/g, "")
7777

7878
match = codeRegex.exec(fromCursor());
7979
if (match === null) {

0 commit comments

Comments
 (0)