Page MenuHomePhabricator

[web] Modify mention typeahead regex
ClosedPublic

Authored by patryk on Aug 25 2023, 3:11 AM.
Tags
None
Referenced Files
F3351804: D8944.id31255.diff
Sat, Nov 23, 3:40 AM
Unknown Object (File)
Mon, Nov 11, 5:18 AM
Unknown Object (File)
Fri, Nov 8, 5:16 AM
Unknown Object (File)
Sun, Oct 27, 2:04 PM
Unknown Object (File)
Sep 27 2024, 6:27 PM
Unknown Object (File)
Sep 27 2024, 6:27 PM
Unknown Object (File)
Sep 27 2024, 6:27 PM
Unknown Object (File)
Sep 27 2024, 6:26 PM
Subscribers

Details

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 added inline comments.
web/utils/typeahead-utils.js
22

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

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.Sep 22 2023, 7:32 AM
This revision was automatically updated to reflect the committed changes.