Comments (7)
I'd suggest padding the string with half a cat, instead.
Are you sure you want that? π
from cat-pad.
const cats = new String('ππMeow');
Object.defineProperty(cats, 'meowlength', {value: 6});
cats.meowlength === 6;
//=> true
from cat-pad.
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.
I summoned my emergency advisors panel today, and the expert cats seemed to almost have reached a consensus for using U+264C leo (β) as a first stage workaround. Unfortunately, they then discovered U+2653 pisces (β) and adjourned the meeting to visit the nearby creek.
from cat-pad.
Well, the Readme states
Padding cats are truncated if they exceed length.
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.
from cat-pad.
What if we used half an avocado when it's half? β π₯
from cat-pad.
My Unicode catalog's avocado uses 2 UCS-2 characters so that won't help. :-(
from cat-pad.
This is preventing me from using this in production. Is there a fix yet?
from cat-pad.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cat-pad.