|
|
@ -28,11 +28,6 @@ module.exports = (text) => { |
|
|
|
return `<span class='greentext'>>${greentext}</span>`; |
|
|
|
return `<span class='greentext'>>${greentext}</span>`; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//links
|
|
|
|
|
|
|
|
text = text.replace(linkRegex, (match) => { |
|
|
|
|
|
|
|
return `<a rel='nofollow' referrerpolicy='same-origin' target='_blank' href='${match}'>${match}</a>`; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//bold
|
|
|
|
//bold
|
|
|
|
text = text.replace(boldRegex, (match, bold) => { |
|
|
|
text = text.replace(boldRegex, (match, bold) => { |
|
|
|
return `<span class='bold'>${bold}</span>`; |
|
|
|
return `<span class='bold'>${bold}</span>`; |
|
|
@ -82,6 +77,11 @@ module.exports = (text) => { |
|
|
|
//dice rolls
|
|
|
|
//dice rolls
|
|
|
|
text = text.replace(diceRegex, diceRoll); |
|
|
|
text = text.replace(diceRegex, diceRoll); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//links
|
|
|
|
|
|
|
|
text = text.replace(linkRegex, (match) => { |
|
|
|
|
|
|
|
return `<a rel='nofollow' referrerpolicy='same-origin' target='_blank' href='${match}'>${match}</a>`; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return text; |
|
|
|
return text; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|