globalpayments / php-sdk

GNU General Public License v2.0
49 stars 66 forks source link

Bug: preg_match(): No ending delimiter '^' found #78

Closed talkalanee closed 9 months ago

talkalanee commented 3 years ago

I have the error: preg_match(): No ending delimiter '^' found, because there are a missing delimiter for the last regex in the array $cardTypes

https://github.com/globalpayments/php-sdk/blob/f86b37e77e01f467af7c63a8acde110783d0ffb1/src/Utils/CardUtils.php#L53

MSmedal commented 3 years ago

@talkalanee , I see what you mean. It looks like it should be "Wex" => "/^(?:690046|707138)/" instead. Thanks for pointing this out!

talkalanee commented 3 years ago

Exactly! You're welcome :)