Function: denote--trim-right-token-characters
denote--trim-right-token-characters is a natively compiled function
defined in denote.el.
Signature
(denote--trim-right-token-characters STR COMPONENT)
Documentation
Remove =, -, _ and @ from the end of STR.
The removal is done only if necessary according to COMPONENT.
Source Code
;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote--trim-right-token-characters (str component)
"Remove =, -, _ and @ from the end of STR.
The removal is done only if necessary according to COMPONENT."
(if (eq component 'title)
(string-trim-right str "[=@_]+")
(string-trim-right str "[=@_-]+")))