"use strict";

export function walletToUsername(string) {
  if (string) {
    return string.replaceAll(/([A-Z])/g, '_$1').toLowerCase();
  }
  return '';
}
export function usernameToWallet(string) {
  return string.replaceAll(/_([a-z])/gm, (m1, m2) => {
    return m2.toUpperCase();
  });
}
//# sourceMappingURL=walletUsername.js.map