branch: elpa/age
commit 6558a3d0cdd4dc9304b0d69c6acdb2add5e12919
Author: Bas Alberts <[email protected]>
Commit: Bas Alberts <[email protected]>

    make version matching regex a little less picky
---
 age.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/age.el b/age.el
index 8d566bd1c1c..9a6eea4e197 100644
--- a/age.el
+++ b/age.el
@@ -209,7 +209,7 @@ version requirement is met."
   ;; e.g. macports has v1.0.0 and nixos has 1.0.0
   (let ((version
          (let ((v (shell-command-to-string (format "%s --version" program))))
-           (when (string-match "v*\\(.*\\)?\n" v)
+           (when (string-match "v*\\(.*\\)?\n*" v)
              (match-string 1 v)))))
     (list (cons 'program program)
           (cons 'version version))))

Reply via email to