Function: projectile-normalise-paths

projectile-normalise-paths is a byte-compiled function defined in projectile.el.

Signature

(projectile-normalise-paths PATTERNS)

Documentation

Remove leading / from the elements of PATTERNS.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-normalise-paths (patterns)
  "Remove leading `/' from the elements of PATTERNS."
  ;; TODO: Replace delq+mapcar with seq-keep when Emacs 29.1 is the minimum version
  (delq nil (mapcar (lambda (pat) (and (string-prefix-p "/" pat)
                                       ;; remove the leading /
                                       (substring pat 1)))
                    patterns)))