chatwoot/app/javascript/dashboard
Sivin Varghese 6386eec5e7
fix: regex validation not applied for custom text attributes in UI (#14110)
# Pull Request Template

## Description

This PR fixes multiple issues related to regex patterns and validation
for custom attributes.
1. Fixed regex patterns being double-escaped when saving from Add and
Edit flows
2. Fixed regex validation not being enforced in the widget pre-chat form
3. Minor UI improvements in the Add/Edit custom attribute dialog


Fixes
[CW-6625](https://linear.app/chatwoot/issue/CW-6625/bug-report-custom-attribute-regex-validation-not-working-in-ui),
https://github.com/chatwoot/chatwoot/issues/13771

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Loom video**

**Before**
https://www.loom.com/share/14f1983a8bc84f9fabc3663afd83cd50

**After**
https://www.loom.com/share/867c0484741140c1944fcbd43914c9c0

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2026-05-05 12:55:53 +05:30
..
api feat(voice): Wire Twilio voice flow through unified call model (#14091) 2026-04-30 11:25:39 +04:00
assets fix(ui): resolve unreadable select options in dark mode (#13207) 2026-03-30 13:05:28 +05:30
components fix: regex validation not applied for custom text attributes in UI (#14110) 2026-05-05 12:55:53 +05:30
components-next fix: regex validation not applied for custom text attributes in UI (#14110) 2026-05-05 12:55:53 +05:30
composables feat(voice): Assignment aware visibility and join conflict for inbound calls (#14333) 2026-04-30 18:38:10 +04:00
constants feat: Add platform-wide status banners for outage notifications (#13943) 2026-04-29 17:18:38 +04:00
helper feat(voice): Assignment aware visibility and join conflict for inbound calls (#14333) 2026-04-30 18:38:10 +04:00
i18n feat(voice): Join active call from the conversation bubble (#14343) 2026-05-04 12:24:31 +04:00
mixins feat: allow configuring attachment upload limit (#12835) 2025-11-17 14:03:08 -08:00
modules fix: prevent country defaulting to Zimbabwe in search result contacts (#14098) 2026-04-28 12:08:46 +05:30
routes fix: regex validation not applied for custom text attributes in UI (#14110) 2026-05-05 12:55:53 +05:30
services feat: Add rich template preview for WhatsApp & Twilio Templates (#13206) 2026-04-30 18:54:34 +04:00
store feat: Add rich template preview for WhatsApp & Twilio Templates (#13206) 2026-04-30 18:54:34 +04:00
stores feat(voice): Assignment aware visibility and join conflict for inbound calls (#14333) 2026-04-30 18:38:10 +04:00
App.vue feat: Add platform-wide status banners for outage notifications (#13943) 2026-04-29 17:18:38 +04:00
featureFlags.js feat: Add voice calling as a capability on Twilio SMS channel(Enterprise) (#13963) 2026-04-29 11:32:19 +04:00