diff --git a/projects/redemption_configs/pages/config.html b/projects/redemption_configs/pages/config.html index 16ee9d2280..57cde1a9a7 100644 --- a/projects/redemption_configs/pages/config.html +++ b/projects/redemption_configs/pages/config.html @@ -335,11 +335,9 @@ } const computeDisplayName = (name) => { - // aaa_bbb_ccc -> Aaa Bbb Ccc - return name.replace( - /([a-zA-Z0-9]+)(_?)/g, - (_, s, sep) => `${s[0].toUpperCase()}${s.substr(1)}${sep ? ' ' : ''}` - ); + // aaa_bbb_ccc -> Aaa bbb ccc + name = name.replaceAll('_', ' '); + return name.charAt(0).toUpperCase() + name.slice(1); }; const computeSpecInfo = (spec) => {