mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 15:50:40 -08:00
(update-copyright): Handle two-digit years with apostrophes.
This commit is contained in:
parent
0114e17e66
commit
09a0903706
1 changed files with 5 additions and 3 deletions
|
|
@ -56,9 +56,11 @@ than adding to it."
|
|||
(save-restriction
|
||||
(widen)
|
||||
(goto-char (point-min))
|
||||
;; Handle abbreviated year lists like "1800, 01, 02, 03".
|
||||
(if (re-search-forward (concat (substring current-year 0 2)
|
||||
"\\([0-9][0-9]\\(,\\s \\)+\\)*"
|
||||
;; Handle abbreviated year lists like "1800, 01, 02, 03"
|
||||
;; or "1900, '01, '02, '03".
|
||||
(if (re-search-forward (concat "\\(" (substring current-year 0 2)
|
||||
"\\)?"
|
||||
"\\([0-9][0-9]\\(,\\s \\)+\\)*'?"
|
||||
(substring current-year 2))
|
||||
nil t)
|
||||
(or ask-upd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue