"Version" headers are case-insensitive

This commit is contained in:
Steve Purcell 2014-12-19 21:50:04 +00:00
parent 9e191b1ab6
commit 26f9176e11

View file

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