aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2019-11-16 22:12:53 -0500
committerKyle Meyer <kyle@kyleam.com>2019-11-16 22:12:53 -0500
commitb3c457ddf4f71b2978f00eb352c0db60a1eb373e (patch)
treebb00acd99c84dbf3cb8667544e888dcd46692955
parent4d3af2e9713fb28b90d08c58c4d8e3dcce25310a (diff)
downloadorgmode-backport-notes-b3c457ddf4f71b2978f00eb352c0db60a1eb373e.tar.gz
org-maint.el: Tighten "next rev" regexp
-rw-r--r--org-maint.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/org-maint.el b/org-maint.el
index db5b16a..5343f22 100644
--- a/org-maint.el
+++ b/org-maint.el
@@ -34,7 +34,8 @@ If APPLY is non-nil, use 'git apply' instead of 'git am'."
(defun org-maint-rev-from-next-item ()
(save-excursion
- (or (and (re-search-forward "- \\[[ X]\\] \\([A-z0-9]\\{40\\}\\)")
+ (or (and (re-search-forward (rx "- [" (or " " "X") "] "
+ (group (= 40 hex-digit))))
(match-string-no-properties 1))
(user-error "Next revision item not found"))))