Function: s-trim-right
s-trim-right is a byte-compiled function defined in s.el.
Signature
(s-trim-right S)
Documentation
Remove whitespace at the end of S.
Source Code
;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-trim-right (s)
"Remove whitespace at the end of S."
(declare (pure t) (side-effect-free t))
(save-match-data
(if (string-match "[ \t\n\r]+\\'" s)
(replace-match "" t t s)
s)))