]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/calc/calc-forms.el (calc-date-notation): Fix typo.
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 11 Dec 2012 02:37:36 +0000 (20:37 -0600)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 11 Dec 2012 02:37:36 +0000 (20:37 -0600)
lisp/calc/calc-forms.el

index f72d20a57a011cae2386aad4edb0406879fb3fd3..7cfca261fa31a6b3c93ca2e808ecbaa93abe6d49 100644 (file)
@@ -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"))