From fab20693a794068be15913e8dd59b8f133260538 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 16 Apr 2014 00:14:45 +0200 Subject: Use rx and allow for use of sha256 --- .emacs.d/site-lisp/pkgbuild.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/site-lisp') diff --git a/.emacs.d/site-lisp/pkgbuild.el b/.emacs.d/site-lisp/pkgbuild.el index e9e33bf..9cfde12 100644 --- a/.emacs.d/site-lisp/pkgbuild.el +++ b/.emacs.d/site-lisp/pkgbuild.el @@ -28,7 +28,7 @@ "Look in the current buffer for the start and end of the checksums." (save-excursion (goto-char (point-min)) - (re-search-forward "\\(md5\\|sha1\\)sums=") + (re-search-forward (rx (or "md5" "sha1" "sha256") "sums")) (let ((start (match-beginning 0))) (search-forward "(") (backward-char) -- cgit v1.2.3-54-g00ecf