Zero Issue Reference Bug
Summary
Inserting an all zero issue reference causes non-issue reference links to break.
Steps to reproduce
- Create an issue
- Insert 1 issue reference in the description like
#0
or#000
- Insert merge requests or label references above or below it in the description.
- Preview or save the description.
Expected behavior
- The invalid issue reference should be rendered as plain text.
- The other references should be rendered as links.
Actual behavior
- All references are rendered as plain text.
Relevant logs and/or screenshots
- #0
- !123
- ~test
Strangely, adding a valid issue reference or any non-zero issue reference (even if it doesn't exist) fixes the issue.
- #99999999
- #0
- !123
- ~test
Output of checks
This bug happens on GitLab.com.
Possible fixes
Handle zero issue references gracefully.