fix(rocketchat): Regex fix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
db64ba48fc
commit
7ea4d9c2e1
|
@ -11,7 +11,7 @@ module.exports = Self => {
|
||||||
let {message} = ctx.instance;
|
let {message} = ctx.instance;
|
||||||
if (!message) return;
|
if (!message) return;
|
||||||
|
|
||||||
const parts = message.match(/(?<=\[)[A-Za-z0-9()*\s]*(?=])/g) || [];
|
const parts = message.match(/(?<=\[).*(?=])/g);
|
||||||
const replacedParts = parts.map(part => {
|
const replacedParts = parts.map(part => {
|
||||||
return part.replace(/[*()]/g, '');
|
return part.replace(/[*()]/g, '');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue