mirror of
https://github.com/danbulant/Shasha
synced 2026-05-27 13:51:53 +00:00
escape regex
This commit is contained in:
parent
7213c50113
commit
7e85e06dd8
3 changed files with 4 additions and 4 deletions
|
|
@ -29,8 +29,8 @@ module.exports = class mute extends commando.Command {
|
||||||
const modConf = doc?.["moderation"];
|
const modConf = doc?.["moderation"];
|
||||||
const muteConf = modConf?.mute;
|
const muteConf = modConf?.mute;
|
||||||
const modCase = modConf?.case;
|
const modCase = modConf?.case;
|
||||||
const args = arg.trim().split(/(\-\-)+/, 5);
|
const args = arg.trim().split(/(?<!\\)(\-\-)+/, 5);
|
||||||
const mentions = args.shift().split(/,+/);
|
const mentions = args.shift().split(/(?<!\\),+/);
|
||||||
const durationRegExp = /\d+(?![^ymwdhs])[ymwdhs]?o?/gi;
|
const durationRegExp = /\d+(?![^ymwdhs])[ymwdhs]?o?/gi;
|
||||||
const invokedAt = msg.createdAt;
|
const invokedAt = msg.createdAt;
|
||||||
const duration = {
|
const duration = {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ module.exports = class avatar extends commando.Command {
|
||||||
}
|
}
|
||||||
const footerQuote = r?.["settings"]?.defaultEmbed?.footerQuote;
|
const footerQuote = r?.["settings"]?.defaultEmbed?.footerQuote;
|
||||||
const args = arg.trim().split(/(?<!\\),+/);
|
const args = arg.trim().split(/(?<!\\),+/);
|
||||||
const option = arg.trim().split(/(\-\-)+/);
|
const option = arg.trim().split(/(?<!\\)(\-\-)+/);
|
||||||
let user, avatar, member, show;
|
let user, avatar, member, show;
|
||||||
let [allEmb, multipleMemMes, dupliCheck] = [[], [], []];
|
let [allEmb, multipleMemMes, dupliCheck] = [[], [], []];
|
||||||
if (!arg) {
|
if (!arg) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ module.exports = class embmaker extends commando.Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async run(msg, arg) {
|
async run(msg, arg) {
|
||||||
const args = arg.trim().split(/(\-\-)+/);
|
const args = arg.trim().split(/(?<!\\)(\-\-)+/);
|
||||||
let embed = new MessageEmbed();
|
let embed = new MessageEmbed();
|
||||||
let autName, footertext, autIcon, autUrl, footericon, content, channel, editSrc, newAttach = [];
|
let autName, footertext, autIcon, autUrl, footericon, content, channel, editSrc, newAttach = [];
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue