monoculum / formam

a package for decode form's values into struct in Go
Apache License 2.0
190 stars 19 forks source link

Also ignore parameters that end with a . or [ #14

Closed arp242 closed 7 years ago

arp242 commented 7 years ago

I'm calling NewDecoder() with IgnoreUnknownKeys set to true. This works brilliant, except when people send up form parameter keys that end with a . and [, in which case it would still trigger errors.

This PR adds an extra check to also ignore those form paramters.

emilgpa commented 7 years ago

Thanks you!