[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22046: [PATCH] Improve version-to-list parsing
From: |
Andreas Schwab |
Subject: |
bug#22046: [PATCH] Improve version-to-list parsing |
Date: |
Mon, 30 Nov 2015 08:59:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Alex Dunn <dunn.alex@gmail.com> writes:
> diff --git a/lisp/subr.el b/lisp/subr.el
> index 74d6aa1..dd3bac6 100644
> --- a/lisp/subr.el
> +++ b/lisp/subr.el
> @@ -4686,14 +4686,14 @@ version-separator
>
>
> (defconst version-regexp-alist
> - '(("^[-\._+ ]?snapshot$" . -4)
> + '(("^[-\._+ ]?snapshot" . -4)
> ;; treat "1.2.3-20050920" and "1.2-3" as snapshot releases
> - ("^[-\._+]$" . -4)
> + ("^[-\._+]" . -4)
> ;; treat "1.2.3-CVS" as snapshot release
> - ("^[-\._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4)
> - ("^[-\._+ ]?alpha$" . -3)
> - ("^[-\._+ ]?beta$" . -2)
> - ("^[-\._+ ]?\\(pre\\|rc\\)$" . -1))
> + ("^[-\._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)" . -4)
> + ("^[-\._+ ]?alpha" . -3)
> + ("^[-\._+ ]?beta" . -2)
> + ("^[-\._+ ]?\\(pre\\|rc\\)" . -1))
> "Specify association between non-numeric version and its priority.
Is that part of the doc string no longer true?
REGEXP regexp used to match non-numeric part of a version string.
It should begin with the `^' anchor and end with a `$' to
prevent false hits. Letter-case is ignored while matching
REGEXP.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."