(calendar-string-to-mayan-long-count): Don't
assume that periods must end numbers. Look for digit runs explicitly.
This commit is contained in:
parent
44d798af46
commit
7cd96b42c5
1 changed files with 6 additions and 5 deletions
|
@ -102,11 +102,12 @@ research. Using 1232041 will give you the correlation used by Spinden.")
|
|||
(condition-case condition
|
||||
(progn
|
||||
(while (< cc c)
|
||||
(let ((datum (read-from-string str cc)))
|
||||
(if (not (integerp (car datum)))
|
||||
(signal 'invalid-read-syntax (car datum))
|
||||
(setq rlc (cons (car datum) rlc))
|
||||
(setq cc (cdr datum)))))
|
||||
(let* ((start (string-match "[0-9]+" str cc))
|
||||
(end (match-end 0))
|
||||
datum)
|
||||
(setq datum (read (substring str start end)))
|
||||
(setq rlc (cons datum rlc))
|
||||
(setq cc end)))
|
||||
(if (not (= (length rlc) 5)) (signal 'invalid-read-syntax nil)))
|
||||
(invalid-read-syntax nil))
|
||||
(reverse rlc)))
|
||||
|
|
Loading…
Add table
Reference in a new issue