diff options
author | Kuchiru <joontje@gmail.com> | 2015-07-23 12:11:13 +0200 |
---|---|---|
committer | Kuchiru <joontje@gmail.com> | 2015-07-23 12:11:13 +0200 |
commit | 79267c1d5983260c65243676729bee93077a4dc6 (patch) | |
tree | 9f56e4566c8044705c4c52360173458fdad316a1 /gsxlib.php | |
parent | e9cf49004e705712934ee8d4220843b23591306c (diff) | |
download | gsxlib-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.
Diffstat (limited to 'gsxlib.php')
-rw-r--r-- | gsxlib.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}$/', |