Variable: magit-release-tag-regexp

magit-release-tag-regexp is a variable defined in magit-tag.el.

Value

"\\`\\(?1:\\(?:v\\(?:ersion\\)?\\|r\\(?:elease\\)?\\)[-_/]?\\)?\\(?2:[0-9]+\\(?:\\.[0-9]+\\)*\\(?:-[a-zA-Z0-9-]+\\(?:\\.[a-zA-Z0-9-]+\\)*\\)?\\)\\'"

Documentation

Regexp used by magit-tag-release to parse release tags.

The first submatch must match the prefix, if any. The second submatch must match the version string.

If this matches versions that are not dot separated numbers, then magit-tag-version-regexp-alist has to contain entries for the separators allowed here.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-tag.el
(defvar magit-release-tag-regexp "\\`\
\\(?1:\\(?:v\\(?:ersion\\)?\\|r\\(?:elease\\)?\\)[-_/]?\\)?\
\\(?2:[0-9]+\\(?:\\.[0-9]+\\)*\
\\(?:-[a-zA-Z0-9-]+\\(?:\\.[a-zA-Z0-9-]+\\)*\\)?\\)\\'"
  "Regexp used by `magit-tag-release' to parse release tags.

The first submatch must match the prefix, if any.  The second
submatch must match the version string.

If this matches versions that are not dot separated numbers,
then `magit-tag-version-regexp-alist' has to contain entries
for the separators allowed here.")