(theme_id: &str)
| 3763 | } |
| 3764 | |
| 3765 | fn split_theme_variant(theme_id: &str) -> Option<(&str, &str)> { |
| 3766 | let (base, variant) = theme_id |
| 3767 | .rsplit_once('@') |
| 3768 | .or_else(|| theme_id.rsplit_once(':'))?; |
| 3769 | if base.is_empty() || !matches!(variant, "dark" | "light") { |
| 3770 | return None; |
| 3771 | } |
| 3772 | Some((base, variant)) |
| 3773 | } |
| 3774 | |
| 3775 | fn parse_model_ref_selection( |
| 3776 | model_ref: &str, |
no test coverage detected