More liberal regexp in pb/update-or-insert-version

This commit is contained in:
Steve Purcell 2014-12-19 21:47:38 +00:00
parent febb32aa75
commit 9e191b1ab6

View file

@ -689,7 +689,7 @@ Optionally PRETTY-PRINT the data."
(defun pb/update-or-insert-version (version) (defun pb/update-or-insert-version (version)
"Ensure current buffer has a \"Version: VERSION\" header." "Ensure current buffer has a \"Version: VERSION\" header."
(goto-char (point-min)) (goto-char (point-min))
(if (re-search-forward "^;;;* *Version: *" nil t) (if (re-search-forward "^;+* *Version *: *" nil t)
(progn (progn
(move-beginning-of-line nil) (move-beginning-of-line nil)
(search-forward "V" nil t) (search-forward "V" nil t)