From fbbd5cba9cf0abecaba63dd199036bf1794d575d Mon Sep 17 00:00:00 2001 From: avish-bisbeehurry-cko Date: Mon, 10 Jul 2017 14:39:46 +0400 Subject: [PATCH 1/2] Update email validation regex --- com/checkout/packages/CheckoutApi/Lib/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/checkout/packages/CheckoutApi/Lib/Validator.php b/com/checkout/packages/CheckoutApi/Lib/Validator.php index cdfc11e..53a8cfe 100644 --- a/com/checkout/packages/CheckoutApi/Lib/Validator.php +++ b/com/checkout/packages/CheckoutApi/Lib/Validator.php @@ -90,7 +90,7 @@ public static function isFloat($string) */ public static function isValidEmail($email) { - $emailReg = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/"; + $emailReg = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$/"; $email = strtolower($email); return preg_match ($emailReg,$email); } From 72ec0bcb2fe4c5d7e73eb947a7ef97a2d53d2392 Mon Sep 17 00:00:00 2001 From: avish-bisbeehurry-cko Date: Mon, 10 Jul 2017 14:52:31 +0400 Subject: [PATCH 2/2] Update lib version --- README.md | 2 +- com/checkout/packages/CheckoutApi/Client/Constant.php | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 66e2f0f..b07cf5c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Or require the Checkout.com package inside the composer.json of your project: ``` "require": { "php": ">=5.2.4", - "checkout/checkout-php-api": "1.2.8" + "checkout/checkout-php-api": "1.2.9" }, ``` __Manually__ diff --git a/com/checkout/packages/CheckoutApi/Client/Constant.php b/com/checkout/packages/CheckoutApi/Client/Constant.php index 1d70a6d..4559743 100644 --- a/com/checkout/packages/CheckoutApi/Client/Constant.php +++ b/com/checkout/packages/CheckoutApi/Client/Constant.php @@ -24,5 +24,5 @@ final class CheckoutApi_Client_Constant const VERSION = 'v2'; const STATUS_CAPTURE = 'Captured'; const STATUS_REFUND = 'Refunded'; - const LIB_VERSION = 'v1.2.8'; + const LIB_VERSION = 'v1.2.9'; } diff --git a/composer.json b/composer.json index 1913ad8..2ea6645 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "checkout/checkout-php-api", "description": "Checkout PHP API Library", "homepage": "https://github.com/checkout/checkout-php-library", - "version": "1.2.8", + "version": "1.2.9", "type": "library", "license": "MIT", "keywords": ["checkout.com","payment","gateway","online payment","checkoutcom","GW3","CKO"],