bug-reference-bug-regexp is a variable defined in `bug-reference.el'.
Its value is

"\\([Bb]ug ?#\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)"

  • This variable is safe as a file local variable if its value
    satisfies the predicate `stringp'.

Regular expression matching bug references.
The second subexpression should match the bug reference (usually a number).

You can customize this variable.

This variable was introduced, or its default value was changed, in version 24.3 of Emacs.