Number is stripped from Merge Request title on frontend

Summary

When Merge Request title is in form "NNNNN. Title text", while displaying Merge Request page, the leading "NNNNN. " is stripped from the title text. If I change the dot to other symbol (i.e. "NNNNN: "), it does not happen.

Although, the number is still there on the page with MR list, and on MR Edit page, so it happens only on frontend.

Steps to reproduce

Create new branch in project, create MR, name it like "12345. Some text". See that on MR's page there is no "12345. " in MR Title.

Example Project

Project, MR example

What is the current bug behavior?

As discribed above, number is stripped from MR Title on the frontent on this page, but you can see it in other places, like MR list page

What is the expected correct behavior?

MR Title should not be mangled like described above while displaying on MR Page.

Relevant logs and/or screenshots

MR page, title is stripped:

MR_Contents

MR list page, title is full:

MR_list

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

Reproducible on gitlab.com, and on my on-premise installation (ce 18.5.1). And also, in my installation, MRs which were created before migration to 18.5.1, do not have this problem.

Results of GitLab application Check

Possible fixes

Patch release information for backports

High-severity bug remediation

Edited by 🤖 GitLab Bot 🤖