summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2013-10-01 18:19:42 (GMT)
committer Carsten Dominik <carsten.dominik@gmail.com>2013-10-01 18:19:42 (GMT)
commit08d9c1b42c67cf7f74e18d5ff829ae1a3dbe2692 (patch)
tree633ee5338d0eb2dfb7fc9f3cc158a1d22d4713b0
parente0dd999a7b3cacf33f95a7da31f8d1b926ee610d (diff)
downloadorg-mode-08d9c1b42c67cf7f74e18d5ff829ae1a3dbe2692.zip
org-mode-08d9c1b42c67cf7f74e18d5ff829ae1a3dbe2692.tar.gz
Fix two regular expressions
* lisp/org.el (org-property-drawer-re): Make less greedy to avoid overreaching matches. (org-clock-drawer-re): Make less greedy to avoid overreaching matches.
-rw-r--r--lisp/org.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 6d34bce..8c87ff3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15051,12 +15051,12 @@ Being in this list makes sure that they are offered for completion.")
"Regular expression matching the first line of a property drawer.")
(defconst org-property-drawer-re
- (concat "\\(" org-property-start-re "\\)[^\000]*\\("
+ (concat "\\(" org-property-start-re "\\)[^\000]*?\\("
org-property-end-re "\\)\n?")
"Matches an entire property drawer.")
(defconst org-clock-drawer-re
- (concat "\\(" org-clock-drawer-start-re "\\)[^\000]*\\("
+ (concat "\\(" org-clock-drawer-start-re "\\)[^\000]*?\\("
org-property-end-re "\\)\n?")
"Matches an entire clock drawer.")