@capillarytech/creatives-library 7.10.15 → 7.10.16
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
|
@@ -113,7 +113,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
113
113
|
|
|
114
114
|
const templateIdValidation = (templateId) => {
|
|
115
115
|
let isError = false;
|
|
116
|
-
const _templateId = templateId?.replace(/["']/g, '');
|
|
116
|
+
const _templateId = templateId?.replace(/[“”"'‘’`´]/g, '');
|
|
117
117
|
const numbersOnly = /^\d+$/;
|
|
118
118
|
if (!numbersOnly.test(_templateId)) {
|
|
119
119
|
isError = true;
|
|
@@ -477,7 +477,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
477
477
|
obj[transformedResults[0][i]] = arr[i];
|
|
478
478
|
});
|
|
479
479
|
//removing additional single/double quotes from template_id
|
|
480
|
-
obj['template_id'] = obj['template_id']?.replace(/["']/g, '');
|
|
480
|
+
obj['template_id'] = obj['template_id']?.replace(/[“”"'‘’`´]/g, '');
|
|
481
481
|
obj['unicode-validity'] = true;
|
|
482
482
|
obj['updated-sms-editor'] = '';
|
|
483
483
|
obj['var-mapped'] = {};
|