trim note name

This commit is contained in:
Yaroslav
2021-04-05 23:37:18 +03:00
parent 10de6ac722
commit eb7908abba
+1 -1
View File
@@ -289,7 +289,7 @@ $(document).on('keydown', function(e) {
}
else if (e.keyCode == 55 && (e.ctrlKey || e.metaKey) && e.shiftKey) { // CTRL + SHIFT + 7
const text = $('#wmd-input').val();
let name = text.split("\n")[0].replaceAll("#", "")
let name = text.split("\n")[0].replaceAll("#", "").trim()
const xhr = new XMLHttpRequest();
const cb = function (status, responseRaw) {
const response = JSON.parse(responseRaw);