Y
Hacker News
new
|
ask
|
show
|
jobs
by
yorwba
3784 days ago
Just replace that /#/g with /[^\s]/g to replace all non-whitespace characters.
2 comments
aehtyb
3780 days ago
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.
link
skeoh
3783 days ago
Does [^\s] match anything \S doesn't?
link