Function: projectile--search-glob-to-regexp

projectile--search-glob-to-regexp is a byte-compiled function defined in projectile.el.

Signature

(projectile--search-glob-to-regexp FILE-EXT)

Documentation

Turn extension glob FILE-EXT into the regexp body used by ag/ack.

Dots are escaped and "*" wildcards dropped, e.g. "*.el" becomes
"\\.el"; the caller anchors it with a trailing "$".

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--search-glob-to-regexp (file-ext)
  "Turn extension glob FILE-EXT into the regexp body used by ag/ack.
Dots are escaped and \"*\" wildcards dropped, e.g. \"*.el\" becomes
\"\\.el\"; the caller anchors it with a trailing \"$\"."
  (replace-regexp-in-string
   "\\*" ""
   (replace-regexp-in-string "\\." "\\\\." file-ext)))