Skip to content

Commit d8f9cc4

Browse files
committed
feat(config.parseCreationRuleForFile): normalize path separator
Signed-off-by: Sizhe Zhao <prc.zhao@outlook.com>
1 parent 1c46d24 commit d8f9cc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ func parseCreationRuleForFile(conf *configFile, confPath, filePath string, kmsEn
368368

369369
// compare file path relative to path of config file
370370
filePath = strings.TrimPrefix(filePath, configDir+string(filepath.Separator))
371+
// replace \ with /
372+
filePath = filepath.ToSlash(filePath)
371373

372374
var rule *creationRule
373375

0 commit comments

Comments
 (0)