this regex /(?<=.+)(\n|\r|\n\r|\r\n){1,}/g works for major browser but is breaking on safari. Is there any alternate for the same?