Skip to content

Commit 758ac00

Browse files
committed
if I would get a dollar for every windows bug I fix I would be a millionaire by now
1 parent 92250b5 commit 758ac00

File tree

3 files changed

+1987
-1
lines changed

3 files changed

+1987
-1
lines changed

packages/svelte/scripts/process-messages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for (const category of fs.readdirSync('messages')) {
1515

1616
const markdown = fs.readFileSync(`messages/${category}/${file}`, 'utf-8');
1717

18-
for (const match of markdown.matchAll(/## ([\w]+)\n\n([^]+?)(?=$|\n\n## )/g)) {
18+
for (const match of markdown.matchAll(/## ([\w]+)\r?\n\r?\n([^]+?)(?=$|\r?\n\r?\n## )/g)) {
1919
const [_, code, text] = match;
2020

2121
if (seen.has(code)) {

0 commit comments

Comments
 (0)