Fix regex handling one-line codeblocks (#10)
This commit is contained in:
parent
8b25b609c6
commit
ade6ba0299
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class MessageInvalidListener extends Listener {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const regex = /^\s*(`{1,3})(.+?)\n([^]+)\1\s*$/;
|
const regex = /^\s*(`{1,3})(.+?)[ \n]([^]+)\1\s*$/;
|
||||||
const match = message.content.slice(prefix.length).match(regex);
|
const match = message.content.slice(prefix.length).match(regex);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue