From 81e075ffea3db9f4bd7773189fa624fd0feb096f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 23 Oct 2024 20:32:57 +0800 Subject: style: standardjs --- src/editor.mjs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/editor.mjs') diff --git a/src/editor.mjs b/src/editor.mjs index 3f8f27d..f3b812a 100644 --- a/src/editor.mjs +++ b/src/editor.mjs @@ -48,15 +48,6 @@ dumbymap.utils.setContextMenu(menuForEditor) const refLinkPattern = /\[([^\x5B\x5D]+)\]:\s+(\S+)(\s["'](\S+)["'])?/ let refLinks = [] -/** - * Validates if the given anchor name is unique - * - * @param {string} anchorName - The anchor name to validate - * @returns {boolean} True if the anchor name is unique, false otherwise - */ -const validateAnchorName = anchorName => - !refLinks.find(obj => obj.ref.toLowerCase() === anchorName.toLowerCase()) - /** * Appends a reference link to the CodeMirror instance * -- cgit v1.2.3-70-g09d2