gosimple / slug

URL-friendly slugify with multiple languages support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[REQUEST] Function to check if input string is already a slug

mewben opened this issue · comments

It would be awesome if there's a function that checks whether an input string is a valid slug or not like this one: https://github.com/extemporalgenome/slug/blob/master/slug.go#L94

Hello, thank you for your request and sorry it took so long to add it (personal stuff...).
Now you have IsSlug function available for use.