Page MenuHomePhabricator

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

Authored by patryk on Sep 1 2023, 5:22 AM.
Tags
None
Referenced Files
F3390738: D9061.id31516.diff
Sat, Nov 30, 12:55 AM
F3390308: D9061.diff
Fri, Nov 29, 11:15 PM
Unknown Object (File)
Tue, Nov 26, 7:43 AM
Unknown Object (File)
Sat, Nov 9, 9:09 AM
Unknown Object (File)
Mon, Nov 4, 12:59 PM
Unknown Object (File)
Oct 30 2024, 3:47 PM
Unknown Object (File)
Oct 27 2024, 2:04 PM
Unknown Object (File)
Oct 12 2024, 10:06 AM
Subscribers

Details

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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

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.Sep 1 2023, 7:20 AM