aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calendar/parse-time.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/calendar/parse-time.el b/lisp/calendar/parse-time.el
index fd26e772b57..6ba26a4a00d 100644
--- a/lisp/calendar/parse-time.el
+++ b/lisp/calendar/parse-time.el
@@ -41,13 +41,11 @@
41(defvar parse-time-val) 41(defvar parse-time-val)
42 42
43(defsubst parse-time-string-chars (char) 43(defsubst parse-time-string-chars (char)
44 (save-match-data 44 (cond ((<= ?a char ?z) ?a)
45 (let (str) 45 ((<= ?0 char ?9) ?0)
46 (cond ((eq char ?+) 1) 46 ((eq char ?+) 1)
47 ((eq char ?-) -1) 47 ((eq char ?-) -1)
48 ((eq char ?:) ?d) 48 ((eq char ?:) ?d)))
49 ((string-match "[[:lower:]]" (setq str (string char))) ?a)
50 ((string-match "[[:digit:]]" str) ?0)))))
51 49
52(defun parse-time-tokenize (string) 50(defun parse-time-tokenize (string)
53 "Tokenize STRING into substrings." 51 "Tokenize STRING into substrings."