From eb7908abbac54ebfe14f0fbff069fd4be6ae9ec0 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Mon, 5 Apr 2021 23:37:18 +0300 Subject: [PATCH] trim note name --- assets/public/editor/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/public/editor/index.html b/assets/public/editor/index.html index a1dd0d0..e262ad7 100644 --- a/assets/public/editor/index.html +++ b/assets/public/editor/index.html @@ -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);