Skip to content

Commit

Permalink
persist: fix windows reserved filenames check
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed May 12, 2024
1 parent 34cb5b2 commit 654675a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persist.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ func kindaSafeFilename(f string) string {
}
}
name := s.String()
nameUpper := strings.ToUpper(name)
for _, reserved := range windowsReservedNames {
if name == reserved {
if nameUpper == reserved {
return name + "_"
}
}
Expand Down

0 comments on commit 654675a

Please sign in to comment.