Function: denote--valid-identifier
denote--valid-identifier is a byte-compiled function defined in
denote.el.
Signature
(denote--valid-identifier IDENTIFIER)
Documentation
Ensure that IDENTIFIER is valid.
It must not contain square brackets, parenthesis, "query-filenames:" or "query-contents".
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote--valid-identifier (identifier)
"Ensure that IDENTIFIER is valid.
It must not contain square brackets, parenthesis, \"query-filenames:\"
or \"query-contents\"."
(replace-regexp-in-string
"query-filenames:" ""
(replace-regexp-in-string
"query-contents:" ""
(replace-regexp-in-string
"[][()]*" "" identifier))))