cleanExtId static method

String cleanExtId(
  1. String extId
)

Implementation

static String cleanExtId(String extId) {
  // clean the extId by removing z3vn| and any leading/trailing whitespace from z3vn|test_user_us_android

  // check if extId starts with z3vn|
  if (extId.startsWith('z3vn|')) {
    return extId.substring(5).trim();
  }

  return extId;
}