gosimple / slug

URL-friendly slugify with multiple languages support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code panics for Unicode U+10000

tja opened this issue · comments

This code panics:

slug.Make("𐀀")

This is due to the internal use of rainycape/unidecode, which can not handle Unicode character U+10000, see rainycape/unidecode#8.

Given the inactivity of the upstream package, it might be worth filtering out the character in question before passing it to unidecode.

Thank you for this report and sorry it took so long, burnout is not nice...

I forked https://github.com/rainycape/unidecode to https://github.com/gosimple/unidecode and fixed this issue.

Thanks a bunch for the fix.. I really appreciate it.

Sorry to hear about your burnout — I hope you're doing better now!

I'm definitely better now, thank you.