Use str.repeat instead of substr for padding #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat-str-repeat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: use str.repeat for padding (fixes #4)
feat: add str.repeat polyfill for older browsers
feat: add module field to package.json
The polyfill is not included in the esm build, esm always support str.repeat.
Coverage decreased (-1.2%) to 95.28% when pulling
860f1ed9e6
on pimlie:feat-str-repeat intoe1e33f9cb6
on SheetJS:master.If you dont like the polyfill I could also add a simple check like
typeof c.repeat === "function"
so we can at least fix the issue for newer browsersThanks a lot! The IE15+ issues triggered by a browser bug -- see https://github.com/Microsoft/ChakraCore/issues/3929 for further discussion.
We will likely move that shim to the actual shim source
shim.js
before publishing the next version