##// END OF EJS Templates
rust-pathauditor: actually split Windows shortname aliases at `~`...
Raphaël Gomès -
r45020:e63b4a1f default
parent child Browse files
Show More
@@ -67,7 +67,7 b' impl PathAuditor {'
67 // Windows shortname aliases
67 // Windows shortname aliases
68 for part in parts.iter() {
68 for part in parts.iter() {
69 if part.contains(&b'~') {
69 if part.contains(&b'~') {
70 let mut split = part.splitn(1, |b| *b == b'~');
70 let mut split = part.splitn(2, |b| *b == b'~');
71 let first =
71 let first =
72 split.next().unwrap().to_owned().to_ascii_uppercase();
72 split.next().unwrap().to_owned().to_ascii_uppercase();
73 let last = split.next().unwrap();
73 let last = split.next().unwrap();
General Comments 0
You need to be logged in to leave comments. Login now