Closed cpojer closed 14 years ago
Hey, just found your code (not using it) and saw a minor bug:
http://github.com/creationix/haml-js/blob/master/haml.js#L43
String.prototype.replace only replaces the first occurrence if used like that. Try 'aba'.replace('a', 'b') // outputs bba.
Strange how a discussion about formatting brings bug reports. Thanks, I'll see what I can do about it.
I just hope to be able to help (use /a/g instead of 'a') :)
Fixed it and a couple of other places.
Hey, just found your code (not using it) and saw a minor bug:
http://github.com/creationix/haml-js/blob/master/haml.js#L43
String.prototype.replace only replaces the first occurrence if used like that. Try 'aba'.replace('a', 'b') // outputs bba.