Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yz4230 committed Dec 5, 2024
1 parent cc01229 commit a464342
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ impl AnyClassStringLike {
}
}
if let Some(AnyJsExpression::JsStaticMemberExpression(tag)) =
template_expression.tag(){
template_expression.tag()
{
if options.match_function(tag.text().as_ref()) {
return Some(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ impl UtilityClassSortingOptions {

pub(crate) fn match_function(&self, name: &str) -> bool {
let matchers = self.functions.iter().flatten();
let parts = name.split(".");
let parts = name.split('.');
for matcher in matchers {
let mut matcher = matcher.split(".");
let mut matcher = matcher.split('.');
let mut parts = parts.clone();

let mut zip = matcher.by_ref().zip(parts.by_ref());
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_js_syntax/src/jsx_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl JsxSelfClosingElement {

impl JsxAttributeList {
/// Returns the [JsxAttribute] that match the given `names_to_lookup`.
/// Only attributes with name as [JsxName] can be returned.
/// Only attributes with name as [AnyJsxAttributeName::JsxName] can be returned.
///
/// Each name of `names_to_lookup` must be unique.
///
Expand Down

0 comments on commit a464342

Please sign in to comment.