replaceNewline static method

String replaceNewline(
  1. String value
)

Implementation

static String replaceNewline(String value) {
  return value.replaceAll('\n', NEW_LINE_REPLACE_PATTERN);
}