Fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-11-25 12:12:48 +01:00
parent 6af7da4793
commit 6b94922335
1 changed files with 2 additions and 0 deletions

View File

@ -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, '');
}); });