chore: Fix 360Dialog template message breakage (#3750)

Template parsing fails when regexp characters are present in templates.

Fixes: #3587
This commit is contained in:
Sojan Jose
2022-01-12 17:41:42 -08:00
committed by GitHub
parent 94209d29cb
commit 1c99294c8c
3 changed files with 52 additions and 9 deletions

View File

@@ -13,6 +13,15 @@ FactoryBot.define do
[{ 'text' => 'Paket Anda sudah dikirim. Paket akan sampai dalam {{1}} hari kerja.', 'type' => 'BODY' },
{ 'text' => 'Pesan ini berasal dari bisnis yang tidak terverifikasi.', 'type' => 'FOOTER' }],
'rejected_reason' => 'NONE' },
{ 'name' => 'customer_yes_no',
'status' => 'approved',
'category' => 'SHIPPING_UPDATE',
'language' => 'ar',
'namespace' => '2342384942_32423423_23423fdsdaf23',
'components' =>
[{ 'text' => 'عميلنا العزيز الرجاء الرد على هذه الرسالة بكلمة *نعم* للرد على إستفساركم من قبل خدمة العملاء.',
'type' => 'BODY' }],
'rejected_reason' => 'NONE' },
{ 'name' => 'sample_shipping_confirmation',
'status' => 'approved',
'category' => 'SHIPPING_UPDATE',