public static String sanitizePhoneNumber(Object value) { String text = whiteSpaceToNull(value); if (text == null) { return null; } text = text.replaceAll(" ", ""); text = text.replaceAll("-", ""); text = text.replaceAll("\\.", ""); text = text.replaceAll("\\(", ""); text = text.replaceAll("\\)", ""); return text; }
err = StringUtils.whiteSpaceToNull(err); return JobActionResult.timeoutFailure(command, startedAt, body, err);
err = StringUtils.whiteSpaceToNull(err); return JobActionResult.timeoutFailure(command, startedAt, body, err);