Skip to content

Possible edge case involving admin overlap #5

@blankdvth

Description

@blankdvth

The code for changing admins online into a hyperlink may have issues when encountering an overlap. If one admin's name contains another's, it may, in an edge case, result in a double hyper-link or partially hyperlinked name.

Currently, it will replace the first match it finds in the str and iterate through the admins online in order, so a str such as Jayy, Jay, would turn into <a href="etc">Jayy</a>, Jay on the first iteration (it finds Jayy in the list of admins, then hyperlinks it), and <a href="etc"><a href="etc2">Jay</a>y</a>, Jay on the second iteration (in theory, it would find Jay in the list of admins, search left -> right using replace, and find the first Jayy as a result).

Original Conversation

Metadata

Metadata

Assignees

No one assigned

    Labels

    MAULThis issue is for the MAUL enhancement scriptbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions