branch: elpa/age
commit 0764e44924f61a5c979007fbf9d11062f8db70e3
Author: Bas Alberts <[email protected]>
Commit: Bas Alberts <[email protected]>
Improve version matching regex
---
age.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/age.el b/age.el
index 9996a27bb6e..dea6b3a67b0 100644
--- a/age.el
+++ b/age.el
@@ -219,7 +219,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|rage ]*\\(.*\\)?\n*" v)
+ (when (string-match "^\\(?:v\\|rage\\)* *\\(.*\\)?\n*" v)
(match-string 1 v)))))
(list (cons 'program program)
(cons 'version version))))