($themes: string)
| 220 | }; |
| 221 | |
| 222 | export function parseStaticThemes($themes: string): StaticTheme[] { |
| 223 | return parseSitesFixesConfig<StaticTheme>($themes, { |
| 224 | commands: Object.keys(staticThemeCommands), |
| 225 | getCommandPropName: (command) => staticThemeCommands[command], |
| 226 | parseCommandValue: (command, value) => { |
| 227 | if (command === 'NO COMMON') { |
| 228 | return true; |
| 229 | } |
| 230 | return parseArray(value); |
| 231 | }, |
| 232 | }); |
| 233 | } |
| 234 | |
| 235 | function camelCaseToUpperCase(text: string): string { |
| 236 | return text.replace(/([a-z])([A-Z])/g, '$1 $2').toUpperCase(); |
no test coverage detected