Merge pull request 'Updated plant code length' (#560) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #560
This commit was merged in pull request #560.
This commit is contained in:
2026-04-30 09:52:39 +00:00

View File

@@ -58,7 +58,7 @@ class StickerMasterController extends Controller
'status_code' => 'ERROR',
'status_description' => 'Plant code must be between 4 and 7 digits only!',
], 400);
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',
@@ -190,7 +190,7 @@ class StickerMasterController extends Controller
'status_code' => 'ERROR',
'status_description' => 'Plant code must be between 4 and 7 digits only!',
], 400);
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',