fix #47 Pathext parsing error

This commit is contained in:
Harry Fei
2022-01-24 15:02:43 +08:00
parent 02d9338802
commit 45b4edfa03
+1 -1
View File
@@ -155,7 +155,7 @@ impl Finder {
.map(|pathext| {
pathext.split(';')
.filter_map(|s| {
if s.as_bytes()[0] == b'.' {
if s.as_bytes().first() == Some(b'.') {
Some(s.to_owned())
} else {
// Invalid segment; just ignore it.