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.
2 parents 7245fe8 + 76c9d0c commit 59f380bCopy full SHA for 59f380b
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