gosimple / slug

URL-friendly slugify with multiple languages support.
Mozilla Public License 2.0
1.15k stars 108 forks source link

Added the possiblity to disable smart truncate (with the exception of… #75

Closed Aym3nTN closed 2 years ago

Aym3nTN commented 2 years ago

I had a use-case where I needed to slugify a string and limiting by a certain number of characters without removing the whole word if the subString cut a word in 2.

codecov[bot] commented 2 years ago

Codecov Report

Merging #75 (5986563) into master (f347b0c) will not change coverage. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #75 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 2 2 Lines 135 150 +15 ========================================= + Hits 135 150 +15 ``` | [Impacted Files](https://codecov.io/gh/gosimple/slug/pull/75?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gosimple) | Coverage Δ | | |---|---|---| | [languages\_substitution.go](https://codecov.io/gh/gosimple/slug/pull/75/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gosimple#diff-bGFuZ3VhZ2VzX3N1YnN0aXR1dGlvbi5nbw==) | `100.00% <100.00%> (ø)` | | | [slug.go](https://codecov.io/gh/gosimple/slug/pull/75/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gosimple#diff-c2x1Zy5nbw==) | `100.00% <100.00%> (ø)` | |
Aym3nTN commented 2 years ago

Hey @matrixik , thank you for having a look at this! Is it possible to make a v1.13.0 release? I want to use it in argo for a specific use case.

matrixik commented 2 years ago

Hey, I still want to have #74 fixed and merged before releasing new version.