Browse Source

org.el: make org-time-stamp also keep warning periods.

... not only repeaters.

Thanks to Karl Voit for spotting this.
Bastien Guerry 14 years ago
parent
commit
f9cc3f525b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -14386,7 +14386,7 @@ at the cursor, it will be modified."
 	 	     (save-match-data
 	 	       (end-of-line)
 	 	       (when (re-search-backward
-			      "\\([.+]+[0-9]+[dwmy]\\(?:[/ ][-+]?[0-9]+[dwmy]\\)?\\) ?"
+			      "\\([.+-]+[0-9]+[dwmy]\\(?:[/ ][-+]?[0-9]+[dwmy]\\)?\\) ?"
 			      (- (point) 20) t)
 			 (match-string 1)))))
 	 org-time-was-given org-end-time-was-given time)