mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
Added RSS capitalisation in custom theme setting labels
no issue - ensures capitalisation of custom theme setting labels matches expectations
This commit is contained in:
parent
e119eb3760
commit
8d12c9ba59
@ -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`);
|
||||
|
Loading…
Reference in New Issue
Block a user