We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2cc827 + 24cbe25 commit 506d875Copy full SHA for 506d875
pkg/store/filestore_windows.go
@@ -24,7 +24,7 @@ import (
24
// See https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file
25
// https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names
26
var (
27
- disallowedKeywords = regexp.MustCompile(`(?i)^(con|prn|nul|aux|com[1-9¹²³]|lpt[1-9¹²³])([.].*)?`)
+ disallowedKeywords = regexp.MustCompile(`(?i)^(con|prn|nul|aux|com[1-9¹²³]|lpt[1-9¹²³])([.].*)?$`)
28
reservedCharacters = regexp.MustCompile(`[\x{0}-\x{1f}<>:"/\\|?*]`)
29
)
30
0 commit comments