Skip to content

Commit

Permalink
Cleanup: replace deprecated OptCheckStringFormat (#48)
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
rodaine authored Sep 13, 2023
1 parent 1f1f50b commit 95274eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/celext/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (l lib) CompileOptions() []cel.EnvOption {
cel.CrossTypeNumericComparisons(true),
cel.EagerlyValidateDeclarations(true),
// TODO: reduce this to just the functionality we want to support
ext.Strings(),
ext.Strings(ext.StringsValidateFormatCalls(true)),
cel.Variable("now", cel.TimestampType),
cel.Function("unique",
l.uniqueMemberOverload(cel.BoolType, l.uniqueScalar),
Expand Down Expand Up @@ -268,7 +268,6 @@ func (l lib) ProgramOptions() []cel.ProgramOption {
return []cel.ProgramOption{
cel.EvalOptions(
cel.OptOptimize,
cel.OptCheckStringFormat, //nolint:staticcheck
),
}
}
Expand Down

0 comments on commit 95274eb

Please sign in to comment.