Updated The Slugify to accept username as emoji
What does this PR do?
Added changes to accept emoji as username
- Previously it updates the emoji as (--) instead of the actual emoji
- Added a regex in which the u flag enables Unicode matching, and the g flag enables global matching (i.e., all matches are replaced, not just the first one).
Fixes #7718
Environment: Staging(main branch) / Production
Type of change
- Bug fix (non-breaking change which fixes an issue)
How should this be tested?
- [ ] Before code changes the emoji username where updated with -- value
- [ ] After this change it is updated according to the emoji provided and /avatar/emoji path is also working fine
Changes Screenshot
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 7, 2023 3:16pm |
@pranjalg13 is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
📦 Next.js Bundle Analysis for @calcom/web
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌
@PeerRich @zomars please review this once Thanks
Thanks for your contribution. I'm gonna close this in favour of https://github.com/calcom/cal.com/pull/8740 as also improves functionality of our slugify function
Cool. no issues @sean-brydon