credit-card
credit-card copied to clipboard
Why not use the package that already does dectection?
https://github.com/cholojuanito/credit_card_type_detector
The code you use is a copy/paste of the code from this package which requires a simple import. It's not big. Not sure why people fan girl over not having any "dependencies" in their packages.
It's not a fangirl of any sort, it was an impulsive decision I made when I first released it. I haven't got much time to rethink it.
I will look into it. What I can do.
And definitely, your suggestion are superior to reality.