diff --git a/configuration.org b/configuration.org index 9734cdd..fb7d3e2 100644 --- a/configuration.org +++ b/configuration.org @@ -2779,8 +2779,13 @@ Intended as a value for `bug-referecne-url-format'." (use-package bug-reference :custom - (bug-reference-bug-regexp (rx (group (in ?! ?#)) - (group (+ digit)))) + (bug-reference-bug-regexp (rx (group word-boundary + (: (| (: (in ?B ?b) "ug" (? " ") (? ?#)) + (: (in ?P ?p) "atch" (? " ") ?#) + (: "RFE" (? " ") ?#) + (: "PR " (+ (any "a-z+-")) "/") + (: "MR" (? " ") (? "!")))) + (group (+ (any "0-9")) (opt (: ?# (+ (any "0-9")))))))) (bug-reference-url-format #'my-gitlab-url) :hook (text-mode . bug-reference-mode)