diff options
author | Bastien <bzg@gnu.org> | 2017-12-29 18:14:42 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2017-12-29 18:14:42 +0100 |
commit | d792b57ffc4e1672b92aaf2f67aac44f6aa6c217 (patch) | |
tree | 9de5d59e036a311ed96780bdbcddf136d1ed83b3 | |
parent | e401afffde1891b1bf4b1d37dd074886c5c2a3f9 (diff) | |
download | org-mode-d792b57ffc4e1672b92aaf2f67aac44f6aa6c217.tar.gz |
org-table: Correctly match ".[0-9]+" as a number
* lisp/org-table.el (org-table-copy-down): Correctly match
".[0-9]+" as a number.
-rw-r--r-- | lisp/org-table.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el index 6ebd6da..8046daa 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1166,7 +1166,7 @@ to a number. In the case of a timestamp, increment by days." (- (org-time-string-to-absolute txt) (org-time-string-to-absolute txt-up))) ((string-match org-ts-regexp3 txt) 1) - ((string-match "\\([-+]\\)?[0-9]+\\(?:\.[0-9]+\\)?" txt-up) + ((string-match "\\([-+]\\)?\\(?:[0-9]+\\)?\\(?:\.[0-9]+\\)?" txt-up) (- (string-to-number txt) (string-to-number (match-string 0 txt-up)))) (t 1))) |