File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { getReferencedMessage } from './getReferencedMessage';
4
4
5
5
const CODEBLOCK_REGEX = / ` ` ` (?: t s | t y p e s c r i p t ) ? \n ( [ \s \S ] + ) ` ` ` / ;
6
6
7
- export const PLAYGROUND_REGEX = / h t t p s ? : \/ \/ (?: w w w \. ) ? (?: t y p e s c r i p t l a n g | s t a g i n g - t y p e s c r i p t ) \. o r g \/ (?: p l a y | d e v \/ b u g - w o r k b e n c h ) (?: \/ i n d e x \. h t m l ) ? \/ ? ( \? ? (?: \w + = [ ^ \s # & ] + ) ? (?: \& \w + = [ ^ \s # & ] + ) * ) # c o d e \/ ( [ \w \- + _ ] + = { 0 , 4 } ) / ;
7
+ export const PLAYGROUND_REGEX = / h t t p s ? : \/ \/ (?: w w w \. ) ? (?: t y p e s c r i p t l a n g | s t a g i n g - t y p e s c r i p t ) \. o r g \/ (?: p l a y | d e v \/ b u g - w o r k b e n c h ) (?: \/ i n d e x \. h t m l ) ? \/ ? ( \? ? (?: \w + = [ ^ \s # & ] + ) ? (?: \& \w + = [ ^ \s # & ] + ) * ) # c o d e \/ ( [ \w \- % + _ ] + = { 0 , 4 } ) / ;
8
8
9
9
export async function findCode ( message : Message , ignoreLinks = false ) {
10
10
const codeInMessage = findCodeInMessage ( message , ignoreLinks ) ;
You can’t perform that action at this time.
0 commit comments