Case insensitive regex match

This commit is contained in:
NielsAD
2018-09-12 18:50:58 +02:00
parent d738912274
commit 98aa234030

2
fs.go
View File

@@ -267,7 +267,7 @@ func escapeRegex(s string) string {
}
s = regexp.QuoteMeta(s)
s = escSpace.ReplaceAllString(s, ".*")
return ".*" + s + ".*"
return "(?i).*" + s + ".*"
}
func cleanPath(p string) string {