panzerdp/voca

v.padLeft('bird', 6, '-'); in document tells result should be '--bird-', but browser result is "--bird"

caoglish opened this issue ยท 1 comments

Welcome to Voca's GitHub repo!

Expected behavior ๐Ÿ˜ธ

in document
https://github.com/panzerdp/voca/blob/master/src/manipulate/pad_left.js
https://vocajs.com/#padLeft
shows:

v.padLeft('bird', 6, '-');
// => '--bird-'

Actual behavior ๐Ÿ˜ฟ

v.padLeft('bird', 6, '-');

resrult:
"--bird"

Steps to reproduce ๐Ÿ‘ท

  1. brower access voca official document and open dev mode.
  2. tyep: v.padLeft('bird', 6, '-');

Technical details: ๐Ÿ”ง

Browser/OS type: firefox/chrome

comments

The document should be the mistake by my understand.

Hi @caoglish,

Thanks for reporting. ๐Ÿ‘
The documentation fixed.