Fix property drawer regexp

* lisp/org.el (org-property-drawer-re): Make sure regexp doesn't expand
  past other drawers.
This commit is contained in:
Nicolas Goaziou 2015-09-04 21:29:55 +02:00
parent b0f6c3c251
commit a2662dc365
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ Group 1 contains drawer's name or \"END\".")
(defconst org-property-drawer-re
(concat "^[ \t]*:PROPERTIES:[ \t]*\n"
"\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*"
"\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*?"
"[ \t]*:END:[ \t]*$")
"Matches an entire property drawer.")