Comment on Show HN: Generate avatars from user initialsparentComments−padolsey8yYep! Or even: const initials = name.match(/\b\w/g).join('')−tyingq8yJavaScript's \b in a regex doesn't like unicode.But, yes, this does seem an odd thing to call out to a remote api for.This would need some work to match the features of what was posted, but not much. https://jsfiddle.net/g6nrs5cq/
Comments
Yep! Or even:
JavaScript's \b in a regex doesn't like unicode.
But, yes, this does seem an odd thing to call out to a remote api for.
This would need some work to match the features of what was posted, but not much. https://jsfiddle.net/g6nrs5cq/