Page MenuHomePhabricator

[web] Modify mention typeahead regex
AcceptedPublic

Authored by patryk on Aug 25 2023, 3:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 16, 2:43 AM
Unknown Object (File)
Fri, Sep 15, 5:16 PM
Unknown Object (File)
Sun, Sep 3, 7:54 AM
Unknown Object (File)
Sat, Aug 26, 6:08 PM
Subscribers

Details

Reviewers
tomek
inka
rohan
Summary

This diff modifies mention typeahead regex on web to support chat mentioning.

Depends on D8943.

Test Plan

Tested later in the stack.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk published this revision for review.Aug 25 2023, 4:01 AM
patryk added inline comments.
web/utils/typeahead-utils.js
22 ↗(On Diff #30308)

Potential drawbacks of this solution are described here.

I think it'll be useful to add some unit tests for this regex, alongside the regex in D8834

web/utils/typeahead-utils.js
22 ↗(On Diff #30308)

Is there any point is using an alternative here? Isn't oldValidUsernameRegexString a subset of validChatNameRegexString?

Remove oldValidUsernameRegexString.

In D8944#263772, @rohan wrote:

I think it'll be useful to add some unit tests for this regex, alongside the regex in D8834

This comment doesn't appear to have been addressed

This revision is now accepted and ready to land.Fri, Sep 22, 7:32 AM