News for hackers. Stuff that matters.
Re:Show HN: Ascii Art to Data URI by yorwba on Sunday February 07, 2016 @11:15AM (#11053324)
Just replace that /#/g with /[^\s]/g to replace all non-whitespace characters.
Re:Show HN: Ascii Art to Data URI by aehtyb on Thursday February 11, 2016 @03:31PM (#11082972)
be forewarned that the reason it's asking you to use only #'s and spaces is the effect only works if the ascii image is very contrast-y. if the ascii art makes use of gradients (....:::;;;iiii@@@@) the effect won't be as obvious or work at all.
Re:Show HN: Ascii Art to Data URI by skeoh on Monday February 08, 2016 @12:33AM (#11056505)
Does [^\s] match anything \S doesn't?