2015-08-30 13:42:32 +02:00
|
|
|
// empty string
|
|
|
|
var EMPTY_STRING = "";
|
2015-08-30 00:26:28 +02:00
|
|
|
// modified from http://beckism.com/2010/09/splitting-lines-javascript/
|
|
|
|
var LINE_BREAKS = /^.*((\r\n|\n|\r)|$)/gm;
|
|
|
|
|
|
|
|
function break_lines(string){
|
2015-08-30 12:16:19 +02:00
|
|
|
return string.match(LINE_BREAKS);
|
2015-08-30 00:26:28 +02:00
|
|
|
}
|