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 7245fe8 commit 76c9d0cCopy full SHA for 76c9d0c
src/util/codeBlocks.ts
@@ -2,7 +2,7 @@ import { Message, TextChannel } from 'discord.js';
2
import { decompressFromEncodedURIComponent } from 'lz-string';
3
import { getReferencedMessage } from './getReferencedMessage';
4
5
-const CODEBLOCK_REGEX = /```(?:ts|typescript)?\n([\s\S]+)```/;
+const CODEBLOCK_REGEX = /```(?:ts|typescript|js|javascript)?\n([\s\S]+)```/;
6
7
export const PLAYGROUND_REGEX = /https?:\/\/(?:www\.)?(?:typescriptlang|staging-typescript)\.org\/(?:play|dev\/bug-workbench)(?:\/index\.html)?\/?(\??(?:\w+=[^\s#&]*)?(?:\&\w+=[^\s#&]*)*)#code\/([\w\-%+_]+={0,4})/;
8
0 commit comments