diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2013-10-01 20:19:42 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2013-10-01 20:19:42 +0200 |
commit | 08d9c1b42c67cf7f74e18d5ff829ae1a3dbe2692 (patch) | |
tree | 633ee5338d0eb2dfb7fc9f3cc158a1d22d4713b0 | |
parent | e0dd999a7b3cacf33f95a7da31f8d1b926ee610d (diff) | |
download | 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.el | 4 |
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.") |