Skip to content

0331-RL-2#4

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

0331-RL-2#4
JiangYongKang wants to merge 2 commits intomasterfrom
0331-RL-2

Conversation

@JiangYongKang
Copy link
Copy Markdown
Owner

No description provided.

This commit introduces new features to the slugify function, allowing for the preservation of specified protected words and the removal of stopwords during slug generation. It includes tests for various scenarios, such as max length truncation, word boundary handling, and backward compatibility. Additionally, command-line argument parsing is updated to support protected words, enhancing the overall slugification process.
…ords

This commit updates the slugify function to guarantee the presence of protected words, even when absent in the input text or when truncation occurs. It includes new test cases to validate these behaviors, ensuring that protected words are prioritized in the slug generation process.
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