@capillarytech/creatives-library 7.12.102 → 7.12.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -362,7 +362,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
362
362
|
//each header can contain letters or numbers with length in range 3 to 9, no mixing
|
|
363
363
|
//it cannot contain special characters except {}
|
|
364
364
|
//eg: valid: "123456" "abcdef" "{123456}" invalid: "abc123" "abc$ef" "1234567"
|
|
365
|
-
|
|
365
|
+
const senderIdLength = senderIdString.length;
|
|
366
366
|
if (senderIdLength < 3) {
|
|
367
367
|
return true;
|
|
368
368
|
}
|
|
@@ -372,7 +372,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
372
372
|
senderIdString.split(',').forEach((value) => {
|
|
373
373
|
const _value = value.trim()?.replace(/[{}]/g, '');
|
|
374
374
|
if (_value) {
|
|
375
|
-
if (!
|
|
375
|
+
if (!(_value.length >= 3 && _value.length <= 9) ) {
|
|
376
376
|
isError = true;
|
|
377
377
|
return;
|
|
378
378
|
}
|