Skip to content

0331-RL-Terminal-2#5

Draft
JiangYongKang wants to merge 2 commits intomasterfrom
0331-RL-Terminal-2
Draft

0331-RL-Terminal-2#5
JiangYongKang wants to merge 2 commits intomasterfrom
0331-RL-Terminal-2

Conversation

@JiangYongKang
Copy link
Copy Markdown
Owner

No description provided.

This commit introduces several enhancements to the slugify function, including support for protected words that must always be included in the final slug. It also adds functionality for truncating slugs at a specified maximum length while respecting word boundaries and ensuring protected words are prioritized. Additionally, new test cases have been added to validate these features, ensuring backward compatibility and proper handling of stopwords.
This commit introduces a new test case for the slugify function, specifically validating the handling of multi-token protected words in Chinese. The test ensures that the slug is generated correctly while respecting the protected words, enhancing the robustness of the slugify functionality.
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.

1 participant