Enable no-useless-escape lint

This commit is contained in:
valadaptive
2023-12-02 10:17:31 -05:00
parent 97c49a405b
commit b023312117
9 changed files with 9 additions and 10 deletions

View File

@ -340,7 +340,7 @@ function collapseNewlines(x) {
*/
function fixMarkdown(text, forDisplay) {
// Find pairs of formatting characters and capture the text in between them
const format = /([\*_]{1,2})([\s\S]*?)\1/gm;
const format = /([*_]{1,2})([\s\S]*?)\1/gm;
let matches = [];
let match;
while ((match = format.exec(text)) !== null) {