Skip to content

Commit

Permalink
fix format map for date keys
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Jul 27, 2024
1 parent fcd7648 commit cdb67de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/sling/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,11 @@ func (cfg *Config) FormatTargetObjectName() (err error) {
}

// clean values for replacing
dateMap := iop.GetISO8601DateMap(time.Now())
for k, v := range m {
if _, ok := dateMap[k]; ok {
continue // don't clean the date values
}
m[k] = iop.CleanName(cast.ToString(v))
}

Expand Down

0 comments on commit cdb67de

Please sign in to comment.