mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
perf(transformer/react): improve is_componentish_name's implementation (#5769)
This commit is contained in:
parent
3cc38dfc05
commit
aac83168b3
1 changed files with 1 additions and 1 deletions
|
|
@ -926,7 +926,7 @@ impl<'a> ReactRefresh<'a> {
|
|||
}
|
||||
|
||||
fn is_componentish_name(name: &str) -> bool {
|
||||
name.chars().next().unwrap().is_ascii_uppercase()
|
||||
name.as_bytes().first().is_some_and(u8::is_ascii_uppercase)
|
||||
}
|
||||
|
||||
fn is_use_hook_name(name: &str) -> bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue