mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-useless-escape lint
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user