Skip to content
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

feat: implement initials name #338

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

geovie
Copy link
Contributor

@geovie geovie commented Dec 11, 2024

Implements initials name function

initials_name("ÇFoo Bar 1Name too ÉLong".into()),
"ÇÉ".to_string()
);
assert_eq!(initials_name("ffl ß".into()), "FFLSS".to_string());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be changed to return FS if wanted

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The string length should not exceed 2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed 👍

@luoxiaozero luoxiaozero merged commit c4fe877 into thaw-ui:main Dec 11, 2024
5 checks passed
@luoxiaozero
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants