Fix reference to single-digit record ids

This commit is contained in:
kinyaelgrande
2024-01-09 14:38:31 +03:00
committed by Mumbi Francis
parent f00fa508e1
commit c11165e19d
+1 -1
View File
@@ -895,7 +895,7 @@ func (svc record) create(ctx context.Context, new *types.Record) (rec *types.Rec
func RecordValueSanitization(m *types.Module, vv types.RecordValueSet) (err error) {
var (
aProps = &recordActionProps{}
numeric = regexp.MustCompile(`^[1-9](\d+)$`)
numeric = regexp.MustCompile(`^[1-9](\d*)$`)
)
err = vv.Walk(func(v *types.RecordValue) error {