sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Beauty punycode urls

Open Kikobeats opened this issue 7 years ago • 1 comments

Currently we can't beautify punicode urls, like https://xn--vi8hl0c.ws/

This could be done adding punycode or similar dependency: https://github.com/sindresorhus/normalize-url/blob/master/index.js#L112

but it's a little heavy (https://bundlephobia.com/[email protected]) so I want investigate and found a workaround first

Kikobeats avatar May 07 '18 11:05 Kikobeats

After investigate, using Tree shaking the size is like ~1.6kB, so that's okay.

Also, we can use it for all the text inside the card, not just the url.

Need to be implemented at nanoclamp first! https://github.com/microlinkhq/nanoclamp/issues/11

Kikobeats avatar May 07 '18 12:05 Kikobeats