-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix - legal name - Legal name fields don't allow hyphen so composed names can't be properly introduced #76842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MonilBhavsar
merged 10 commits into
Expensify:main
from
FitseTLT:fix-app-not-allowing-hyphen-on-legal-names
Dec 12, 2025
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0a0b0b0
allowed hypens for legal names
FitseTLT 7289ebd
added copy
FitseTLT 804fa13
Merge branch 'main' into fix-app-not-allowing-hyphen-on-legal-names
FitseTLT 8011078
Merge branch 'main' into fix-app-not-allowing-hyphen-on-legal-names
FitseTLT 3ed6ac5
Revert "allowed hypens for legal names"
FitseTLT 194d241
Revert "added copy"
FitseTLT 51fc72e
revert copy changes
FitseTLT c32d2ff
revert
FitseTLT cc66889
allow any characters for legal names
FitseTLT a177448
Merge branch 'main' into fix-app-not-allowing-hyphen-on-legal-names
FitseTLT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that we should only allow hyphen if it's followed by another character?
Otherwise, we can see something like this, it looks pretty weird and I don't think that's a valid name:
Screen.Recording.2025-12-07.at.22.23.11.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was exactly what I was asking. @JmillsExpensify @trjExpensify WDYT about the above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting on this @JmillsExpensify @trjExpensify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhm.. so let's take a step back on the history here.
TL;DR of the outcome from @iwiznia.
So, has anything changed between our last outcome and now? If not, then we're still expecting anything but an empty value is a valid legal name. This time, can we please make sure:
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm up if we decide to allow any name other than empty string on the BE, lemme know 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this issue, we have implemented stricter rules for our legal name validation. However, the current validation allows hyphen character that's not followed by another Latin character, please see my comment.
I'd suggest that we should only hyphen if it's followed by another Latin character. For example:
hans-vuis valid name whilehans-,-hansaren't.Let me know your thoughts 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hungvu193 would you be able to raise a discussion in slack, that way we all can communicate faster :)