fix(rocketchat): Regex fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-11-25 09:18:21 +01:00
parent db64ba48fc
commit 7ea4d9c2e1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = Self => {
let {message} = ctx.instance;
if (!message) return;
const parts = message.match(/(?<=\[)[A-Za-z0-9()*\s]*(?=])/g) || [];
const parts = message.match(/(?<=\[).*(?=])/g);
const replacedParts = parts.map(part => {
return part.replace(/[*()]/g, '');
});