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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue