Closed dospunk closed 1 year ago
Yeah, that sounds reasonable. It'll have to be a major version bump to accamodate the breaking change, but that shouldn't be a problem.
Thanks for reaching out! We've forwarded your request for evaluation and potential prioritization. We can't provide an ETA on if/when this would get added to the library. But in the meantime, if you'd like to submit a PR for your idea you are welcome to do so!
(also apologies for delay on ticketing this up)
Closing this issue as we've directed this feature request to the appropriate folks for consideration of prioritization. As @SancSalix mentioned, if anyone wants to PR this feature, go for it!
Right now, the
gaps
attribute can only have information for one number length, which isn't very useful for cards like Diner's Club, where their 14-digit cards have one format while their 16-digit cards have another.My proposed solution would be to turn the
gaps
array into an object, like so