Allow ASCII and numeric only for fqn

This commit is contained in:
Kitaiti Makoto 2023-01-09 20:37:02 +09:00
parent 53cdd8198b
commit fc848a8d53

View file

@ -28,7 +28,7 @@ pub fn iri_percent_encode_seg(segment: &str) -> String {
pub fn make_fqn(name: &str) -> String {
name.to_upper_camel_case()
.chars()
.filter(|c| c.is_alphanumeric())
.filter(|c| c.is_ascii_alphanumeric())
.collect()
}