escapeForSingleQuotedShell static method

String escapeForSingleQuotedShell(
  1. String value
)

Escape stringa per embedding in singole quote POSIX: '...'.

Implementation

static String escapeForSingleQuotedShell(String value) {
  return value.replaceAll("'", r"'\''");
}