aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuchiru <joontje@gmail.com>2015-07-23 12:11:13 +0200
committerKuchiru <joontje@gmail.com>2015-07-23 12:11:13 +0200
commit79267c1d5983260c65243676729bee93077a4dc6 (patch)
tree9f56e4566c8044705c4c52360173458fdad316a1
parente9cf49004e705712934ee8d4220843b23591306c (diff)
downloadgsxlib-79267c1d5983260c65243676729bee93077a4dc6.tar.gz
gsxlib-79267c1d5983260c65243676729bee93077a4dc6.tar.bz2
gsxlib-79267c1d5983260c65243676729bee93077a4dc6.zip
Fixed partNumber Length for new format.
123-1234 and 123-12345 are both valid formats now.
-rw-r--r--gsxlib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxlib.php b/gsxlib.php
index b4eec45..5a6ed33 100644
--- a/gsxlib.php
+++ b/gsxlib.php
@@ -573,7 +573,7 @@ class GsxLib
{
$result = false;
$rex = array(
- 'partNumber' => '/^([A-Z]{1,2})?\d{3}\-?(\d{4}|[A-Z]{2})(\/[A-Z])?$/i',
+ 'partNumber' => '/^([A-Z]{1,2})?\d{3}\-?(\d{4,5}|[A-Z]{2})(\/[A-Z])?$/i',
'serialNumber' => '/^[A-Z0-9]{11,12}$/i',
'eeeCode' => '/^[A-Z0-9]{3,4}$/', // only match ALL-CAPS!
'returnOrder' => '/^7\d{9}$/',