Wrong output with \n and multiple spaces
FlavaSava7 opened this issue · 1 comments
FlavaSava7 commented
1 - wrong output with \n :
e.g.
input= a
w
output = W
A
A W
A W
2- Multiple spaces:
Solution is to insert line before 24 :
source = source.replace(/\n/g, "");
And replace line 24 with :
source = source.replace(/ /g, "");
Tanjoodo commented
Cool thanks for the source. Though maybe next time do it yourself