clemos / try-haxe

A small webapp that allows to test Haxe online
https://try.haxe.org
MIT License
126 stars 41 forks source link

Fix a bug where the end of line is not splitted correctly #133

Closed pleclech closed 7 years ago

pleclech commented 7 years ago

Hello i think the regex here https://github.com/clemos/try-haxe/blob/master/src/SourceTools.hx#L6

is invalid as it split also the line with | and the it should split the \r\n before the other one char line.

You can see it in action here: https://try.haxe.org/#Bdb77

Patrick.