Function: ensure-prefix-slash-only

Source

(defun ensure-prefix-slash-only (url)
  (if (equal url "")
      ""
      (=~ "^/*(.*?)/*$" url (strcat #\/ ($ 1)))))
Source Context