Added RSS capitalisation in custom theme setting labels

no issue

- ensures capitalisation of custom theme setting labels matches expectations
This commit is contained in:
Kevin Ansfield 2021-11-05 09:12:14 +00:00
parent e119eb3760
commit 8d12c9ba59

View File

@ -4,7 +4,8 @@ import {humanize} from 'ember-cli-string-helpers/helpers/humanize';
export function humanizeSettingKey([key]) {
let humanized = humanize([key]);
const allCaps = ['API', 'CTA'];
const allCaps = ['API', 'CTA', 'RSS'];
allCaps.forEach((str) => {
const regex = new RegExp(`(^| )(${str})( |$)`, 'gi');
humanized = humanized.replace(regex, `$1${str}$3`);