mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
new regex
This commit is contained in:
parent
894f4a16ca
commit
69fa38a808
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ function inject (bot, client, target) {
|
|||
!data.message?.startsWith('/') &&
|
||||
!data.message?.startsWith('.')
|
||||
) {
|
||||
const codeParsedMessage = data.message.replace(/%.*%/g, (code) => {
|
||||
const codeParsedMessage = data.message.replace(/%[^%]+%/g, (code) => {
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
return eval(code.substring(1).slice(0, -1))
|
||||
|
|
Loading…
Reference in a new issue