wupengfei
2025-08-08 e5b6f4180bd311bb63c3c5c9b3074e3b6b60e19e
src/utils/common/common.ts
@@ -106,3 +106,12 @@
export function filterNumbersFromString(str: string) {
  return str.replace(/\D/g, '');
}
export function formatRoleName(roleName: string) {
  let lastUnderscoreIndex = roleName.lastIndexOf('_');
  if (lastUnderscoreIndex !== -1) {
    roleName = roleName.substring(0, lastUnderscoreIndex);
  }
  return roleName;
}