withoutDomain function

String withoutDomain(
  1. String handle
)

Implementation

String withoutDomain(String handle) {
  for (var domain in plugin.serverDescription["availableUserDomains"]) {
    if (handle.endsWith(domain)) {
      handle = handle.replaceAll(domain, '');
    }
  }
  return handle;
}