mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 19:17:27 +00:00
"Version" headers are case-insensitive
This commit is contained in:
parent
9e191b1ab6
commit
26f9176e11
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue