complete allowed char list

This commit is contained in:
Louis 2019-07-12 12:12:16 +02:00 committed by Rafał Harabień
parent 0a68d8f0d5
commit 861426db22

View File

@ -585,7 +585,7 @@ fn validate_long_name(name: &str) -> io::Result<()> {
'a'...'z' | 'A'...'Z' | '0'...'9' => {},
'\u{80}'...'\u{FFFF}' => {},
'$' | '%' | '\'' | '-' | '_' | '@' | '~' | '`' | '!' | '(' | ')' | '{' | '}' | '.' | ' ' | '+' | ','
| ';' | '=' | '[' | ']' => {},
| ';' | '=' | '[' | ']' | '^' | '#' | '&' => {},
_ => return Err(io::Error::new(ErrorKind::Other, "File name contains unsupported characters")),
}
}