mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Update src/librustdoc/passes/html_tags.rs
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
This commit is contained in:
parent
f5cd6b3e9b
commit
ad197e414c
@ -99,7 +99,7 @@ fn is_valid_for_html_tag_name(c: char, is_empty: bool) -> bool {
|
||||
//
|
||||
// > A tag name consists of an ASCII letter followed by zero or more ASCII letters, digits, or
|
||||
// > hyphens (-).
|
||||
c.is_ascii_alphabetic() || (c.is_ascii_digit() && !is_empty) || (c == '-' && !is_empty)
|
||||
c.is_ascii_alphabetic() || !is_empty && (c == '-' || c.is_ascii_digit())
|
||||
}
|
||||
|
||||
fn extract_html_tag(
|
||||
|
Loading…
Reference in New Issue
Block a user