Fix some Markdown leaking into note titles

This commit is contained in:
Skylar Ittner 2019-01-26 16:01:25 -07:00
parent 41865a9a72
commit cd476b3f6d

View File

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