aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-07-31 14:32:50 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-07-31 14:32:50 +0300
commitad669af2ae55f2d0134f919daf16212161cf7bcf (patch)
treee9f5c128935ea586f0d14167b69937eb50d9c8a1
parentbda739aa6ee235519f27ccc1ecee2222f25def47 (diff)
parent7301138ff9c7857e25c305e058b9a89f2844871c (diff)
downloadgsxlib-ad669af2ae55f2d0134f919daf16212161cf7bcf.tar.gz
gsxlib-ad669af2ae55f2d0134f919daf16212161cf7bcf.tar.bz2
gsxlib-ad669af2ae55f2d0134f919daf16212161cf7bcf.zip
Merge branch 'pr/44'
-rw-r--r--gsxlib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxlib.php b/gsxlib.php
index 5dfcdb5..a520653 100644
--- a/gsxlib.php
+++ b/gsxlib.php
@@ -605,12 +605,12 @@ 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}$/',
'repairNumber' => '/^\d{12}$/',
- 'dispatchId' => '/^G\d{9}$/',
+ 'dispatchId' => '/^[A-Z]+\d{9}$/',
'alternateDeviceId' => '/^\d{15}$/',
'diagnosticEventNumber' => '/^\d{23}$/',
'productName' => '/^i?Mac/',