Function: denote-slug-put-equals

denote-slug-put-equals is a byte-compiled function defined in denote.el.

Signature

(denote-slug-put-equals STR)

Documentation

Replace spaces and underscores with equals signs in STR.

Also replace multiple equals signs with a single one and remove any leading and trailing signs.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-slug-put-equals (str)
  "Replace spaces and underscores with equals signs in STR.
Also replace multiple equals signs with a single one and remove
any leading and trailing signs."
  (replace-regexp-in-string
   "^=\\|=$" ""
   (replace-regexp-in-string
    "=\\{2,\\}" "="
    (replace-regexp-in-string "_\\|\s+" "=" str))))