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

fix: slugify from creating double+ dashes #14002

Conversation

sean-brydon
Copy link
Member

fixes: #13980

Before:

"Hello - World 123_ !@# Test 456 789" -> "hello---world-123----test-456-789"
Now
"Hello - World 123_ !@# Test 456 789" ->""hello-world-123-test-456-789"

Copy link

linear bot commented Mar 7, 2024

@graphite-app graphite-app bot requested a review from a team March 7, 2024 09:10
@github-actions github-actions bot added the booking-page area: booking page, public booking page, booker label Mar 7, 2024
Copy link
Contributor

github-actions bot commented Mar 7, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@github-actions github-actions bot added High priority Created by Linear-GitHub Sync 🐛 bug Something isn't working 🚧 wip / in the making labels Mar 7, 2024
@keithwillcode keithwillcode added consumer core area: core, team members only labels Mar 7, 2024
Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 0:54am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2024 0:54am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2024 0:54am
qa ⬜️ Ignored (Inspect) Visit Preview Mar 7, 2024 0:54am

Copy link

graphite-app bot commented Mar 7, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (03/07/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Comment on lines 53 to 54
it.skip("should remove unicode and emoji characters", () => {
expect(slugify("Hello 📚🕯️®️ There")).toEqual("hello---------there");
Copy link
Contributor

Choose a reason for hiding this comment

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

this old test case too many dashes in expected value

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to allow these many consecutive dashes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh i missed that as its being skipped let me see if i can fix the test

No this new slugify will only allow one dash in a row

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed test for emojis - unicode seems to be a bit harder to remove in this instance

Copy link
Contributor

github-actions bot commented Mar 7, 2024

📦 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! 🙌

Copy link

deploysentinel bot commented Mar 7, 2024

No failed tests 🎉

…e-triple-dashes-getting-in-to-public-booking-links' into sean/cal-3260-double-triple-dashes-getting-in-to-public-booking-links
@PeerRich
Copy link
Member

PeerRich commented Mar 7, 2024

i was just about to open an issue for this lol. great work!

@PeerRich
Copy link
Member

PeerRich commented Mar 7, 2024

@Udit-takkar Udit-takkar merged commit 0784df6 into main Mar 7, 2024
37 of 38 checks passed
@Udit-takkar Udit-takkar deleted the sean/cal-3260-double-triple-dashes-getting-in-to-public-booking-links branch March 7, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
booking-page area: booking page, public booking page, booker 🐛 bug Something isn't working consumer core area: core, team members only High priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3260] Double & Triple dashes getting in to public booking links
4 participants