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

[Feature Request]: Add Slug Generation Feature #480

Open
4 tasks done
arunimasingh26 opened this issue Jan 13, 2025 · 1 comment
Open
4 tasks done

[Feature Request]: Add Slug Generation Feature #480

arunimasingh26 opened this issue Jan 13, 2025 · 1 comment

Comments

@arunimasingh26
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

The feature will convert a given string into a URL-friendly slug, using a combination of string manipulation and Unicode normalization.

It will perform as follows:

  • Convert the input string to lowercase.
  • Replace spaces with hyphens (-).
  • Remove accented characters and replace them with their non-accented equivalents.
  • Strip leading and trailing hyphens.
  • Remove any invalid characters (special characters) except alphanumeric characters and hyphens.
  • Handle edge cases such as multiple spaces, empty strings, and special characters.

For example:
"Where to find best cafés in Bhopal?" will be converted into "where-to-find-best-cafes-in-bhopal".

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
  • I'm willing to provide further clarification or assistance if needed.

Full Name

Arunima Singh

Participant Role

SWOC'25 Contributor

Copy link
Contributor

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!

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

No branches or pull requests

1 participant