escape tag markdown

This commit is contained in:
Ashley Graves 2024-10-12 01:08:00 +02:00
parent d159fa4a00
commit 61c8a8de01

View file

@ -55,7 +55,7 @@ function notEmpty(str) {
const regexCutTags = /[\S\s]{1,875}[^,]{0,25}/; const regexCutTags = /[\S\s]{1,875}[^,]{0,25}/;
function formatTags(tags) { function formatTags(tags) {
const tagString = decode(tags.join(', ')); const tagString = decode(tags.map(escapeMarkdown).join(', '));
if (tagString.length < 500) { if (tagString.length < 500) {
return tagString; return tagString;