-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cats are big #1
Comments
Well, the Readme states
which contradicts the example: catPad('Meow', 6);
//=> '🐈🐈Meow' because '🐈🐈Meow'.length === 8 I'd say let's use UCS-2 characters for the length, and in the odd case, prefer the front half of the cat so it can still purr and make funny faces. |
What if we used half an avocado when it's half? → 🥑 |
My Unicode catalog's avocado uses 2 UCS-2 characters so that won't help. :-( |
const cats = new String('🐈🐈Meow');
Object.defineProperty(cats, 'meowlength', {value: 6});
cats.meowlength === 6;
//=> true |
This is preventing me from using this in production. Is there a fix yet? |
My apologies for the continuing lack of progress with this severe malfunction. |
Cats take up twice the width of a normal character.
I'd suggest padding the string with half a cat, instead.
The text was updated successfully, but these errors were encountered: