diff options
-rw-r--r-- | org-maint.el | 3 |
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")))) |