Page MenuHomePhabricator

[lib][native][web] Move validChatNameRegex to validation-utils.js
AcceptedPublic

Authored by patryk on Fri, Sep 1, 5:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 23, 6:30 PM
Unknown Object (File)
Fri, Sep 22, 12:51 AM
Unknown Object (File)
Sun, Sep 17, 12:42 AM
Unknown Object (File)
Sat, Sep 2, 12:41 PM
F737992: error2.png
Fri, Sep 1, 5:28 AM
Subscribers

Details

Reviewers
tomek
inka
rohan
Summary

This diff resolves the ReferenceError issue on web, which was occurring after the introduction of D8834.

error2.png (409×511 px, 85 KB)

Depends on D8945.

Test Plan

Check if all files import validChatNameRegex, validChatNameRegexString, chatNameMaxLength from validation-utils.js

Diff Detail

Repository
rCOMM Comm
Branch
patryk/chat-mentioning-2
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 reviewers: tomek, inka.
patryk attached a referenced file: F737992: error2.png. (Show Details)
patryk edited the test plan for this revision. (Show Details)

Why moving this to validation-utils.js and not to other file?

validChatNameRegex has a word valid => validation => validation-utils.js

patryk published this revision for review.Fri, Sep 1, 5:46 AM
patryk edited the summary of this revision. (Show Details)
rohan added a subscriber: rohan.

Didn't review this super closely, seems like just a move

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