From: Richard M. Stallman Date: Sun, 10 Jul 2005 17:19:28 +0000 (+0000) Subject: (timezone-parse-date): Changed first regexp X-Git-Tag: emacs-pretest-22.0.90~8247 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f44c13705f7749f95153296e66e2475e43399def;p=emacs.git (timezone-parse-date): Changed first regexp so it will not mistakenly match dates with no time zone. --- diff --git a/lisp/timezone.el b/lisp/timezone.el index cd6e3ce769f..692e2a682ce 100644 --- a/lisp/timezone.el +++ b/lisp/timezone.el @@ -149,7 +149,7 @@ Understands the following styles: (time nil) (zone nil)) ;This may be nil. (cond ((string-match - "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]*\\([-+a-zA-Z0-9]+\\)" date) + "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]+\\([-+a-zA-Z0-9]+\\)" date) ;; Styles: (1) and (2) with timezone and buggy timezone ;; This is most common in mail and news, ;; so it is worth trying first.