Function: hpath:delete-trailer

hpath:delete-trailer is a byte-compiled function defined in hpath.el.

Signature

(hpath:delete-trailer STRING)

Documentation

Return STRING minus any trailing .?#!*() or quoting characters.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:delete-trailer (string)
  "Return STRING minus any trailing .?#!*() or quoting characters."
  (save-match-data
    (if (and (stringp string) (> (length string) 0)
	     (string-match "[.?#!*()`'\"]+\\'" string))
	(substring string 0 (match-beginning 0))
      string)))