(text: string)
| 223 | }; |
| 224 | |
| 225 | export function parseInversionFixes(text: string): InversionFix[] { |
| 226 | return parseSitesFixesConfig<InversionFix>(text, { |
| 227 | commands: Object.keys(inversionFixesCommands), |
| 228 | getCommandPropName: (command) => inversionFixesCommands[command], |
| 229 | parseCommandValue: (command, value) => { |
| 230 | if (command === 'CSS') { |
| 231 | return value.trim(); |
| 232 | } |
| 233 | return parseArray(value); |
| 234 | }, |
| 235 | }); |
| 236 | } |
| 237 | |
| 238 | export function formatInversionFixes(inversionFixes: InversionFix[]): string { |
| 239 | const fixes = inversionFixes.slice().sort((a, b) => compareURLPatterns(a.url[0], b.url[0])); |
no test coverage detected