Updated plant code length
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-30 15:19:22 +05:30
parent 9827716379
commit 1c2e8c7ddf

View File

@@ -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{6,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',