Fix some Markdown leaking into note titles

master
Skylar Ittner 5 years ago
parent 41865a9a72
commit cd476b3f6d

@ -220,7 +220,7 @@ class Note {
title = "New note"; title = "New note";
} else { } else {
title = this.content.split('\n')[0]; title = this.content.split('\n')[0];
title = title.replace(/[\*#_`]/, ""); title = title.replace(/[\*#_`]+/, "");
title = title.replace(/^- \[[x ]\] /i, ""); title = title.replace(/^- \[[x ]\] /i, "");
} }
} }

Loading…
Cancel
Save