yohangdev / letter-avatar

Generate user avatar using name initials letter.
124 stars 51 forks source link

Words that start with a number throw an exception #1

Closed jeroenbourgois closed 7 years ago

jeroenbourgois commented 8 years ago

Hi

When trying combinations where the first word is a number, an exception is thrown. In my app I bypass this now by stripping numbers altogether but I was wondering what your approach would be. Should the package support numbers or strip them? If you want I can make a PR for a proposed strategy!

yohangdev commented 8 years ago

@jeroenbourgois yes, that's was known error for long time 😁 also for non-alphabet names, etc. If you have a time for making PR fix, it's great. Thank you so much.