attempt to fix problem when inserting link

This commit is contained in:
azivner
2017-08-30 23:17:03 -04:00
parent c16ed9546b
commit 8a388842aa
2 changed files with 3 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ $(document).bind('keydown', 'alt+l', function() {
});
});
$("#addLinkButton").click(function() {
$("#insertLinkForm").submit(function addLink() {
let val = $("#noteAutocomplete").val();
const noteIdMatch = / \(([A-Za-z0-9]{22})\)/.exec(val);