Fixes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
6af7da4793
commit
6b94922335
|
@ -12,6 +12,8 @@ module.exports = Self => {
|
||||||
if (!message) return;
|
if (!message) return;
|
||||||
|
|
||||||
const parts = message.match(/(?<=\[)[a-zA-Z0-9!@#$%^&*()={};':"\\|,.<>/?\s]*(?=])/g);
|
const parts = message.match(/(?<=\[)[a-zA-Z0-9!@#$%^&*()={};':"\\|,.<>/?\s]*(?=])/g);
|
||||||
|
if (!parts) return;
|
||||||
|
|
||||||
const replacedParts = parts.map(part => {
|
const replacedParts = parts.map(part => {
|
||||||
return part.replace(/[!@#$%^&*()={};':"\\|,.<>/?]/g, '');
|
return part.replace(/[!@#$%^&*()={};':"\\|,.<>/?]/g, '');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue