def METHOD_NAME(self, project_url, wiki_text):
    if wiki_text is None:
        wiki_text = ""
    template = fr"\g<1>[GitLab#\g<2>]({project_url}/issues/\g<2>)\g<3>"
    return re.sub(r"(\s|^)#(\d+)(\s|$)", template, wiki_text, 0, re.M)