sanitize static method

String sanitize(
  1. String value
)

Implementation

static String sanitize(String value) {
  return value.isEmpty || !value.contains(".")
      ? value
      : value.toString().split(".").last;
}