mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
remove redundant '-' identifier check
This commit is contained in:
parent
910af8322c
commit
acdd33c754
@ -1099,7 +1099,7 @@ fn is_valid_in_label_literal(c: char) -> bool {
|
|||||||
/// Whether a character can be part of a string in a decorator.
|
/// Whether a character can be part of a string in a decorator.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn is_valid_in_decorator_string(c: char) -> bool {
|
fn is_valid_in_decorator_string(c: char) -> bool {
|
||||||
is_id_continue(c) || c == '@' || c == '/' || c == '-'
|
is_id_continue(c) || c == '@' || c == '/'
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if this string is valid in a label literal.
|
/// Returns true if this string is valid in a label literal.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user