From: Jay Belanger Date: Tue, 11 Dec 2012 02:37:36 +0000 (-0600) Subject: * lisp/calc/calc-forms.el (calc-date-notation): Fix typo. X-Git-Tag: emacs-24.3.90~173^2~7^2~639 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c21bef6d1a31b6a5f1879530f7dcb2525d942ca;p=emacs.git * lisp/calc/calc-forms.el (calc-date-notation): Fix typo. --- diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index f72d20a57a0..7cfca261fa3 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el @@ -82,7 +82,7 @@ (calc-wrapper (if (string-match-p "\\`\\s-*\\'" fmt) (setq fmt "1")) - (if (string-match "\\` \\(*[0-9]\\|10\\|11\\) *\\'" fmt) + (if (string-match "\\` *\\([0-9]\\|10\\|11\\) *\\'" fmt) (setq fmt (nth (string-to-number fmt) calc-standard-date-formats))) (or (string-match "[a-zA-Z]" fmt) (error "Bad date format specifier"))