We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b2fed commit c81e2acCopy full SHA for c81e2ac
libs/extractor/src/extractor/extract_global_style_from_expression.rs
@@ -144,10 +144,8 @@ pub fn extract_global_style_from_expression<'a>(
144
&mut o.value,
145
0,
146
&Some(StyleSelector::Global(
147
- if name.starts_with("_") {
148
- StyleSelector::from(&name[1..])
149
- .to_string()
150
- .replace("&", "*")
+ if let Some(name) = name.strip_prefix("_") {
+ StyleSelector::from(name).to_string().replace("&", "*")
151
} else {
152
name.to_string()
153
},
0 commit comments