(themeId: string)
| 218 | |
| 219 | /** Slug embedded in a `custom-<slug>` theme id, or null for built-ins. */ |
| 220 | export function customThemeSlugFromId(themeId: string): string | null { |
| 221 | const m = CUSTOM_ID_RE.exec(themeId) |
| 222 | return m ? m[1] : null |
| 223 | } |
| 224 | |
| 225 | /** Whether a theme id refers to a custom theme. */ |
| 226 | export function isCustomThemeId(themeId: string): boolean { |
no outgoing calls
no test coverage detected