@Jose_Aranda ,
To help demonstrate how your search behaves with names that contain hyphens, slashes, underscores, dashes, and other special characters, I created a mock dataset that closely matches the pattern in your original data.
Transformer 24 – Mock Client Data
return [
{
id: 1,
client_name: "MAHONEY-BUFFALO WINGS #442",
client_address: "4821 LAKE RIDGE RD",
client_phone: "414-883-1299"
},
{
id: 2,
client_name: "MAHONEY PIZZA-HUT / MADISON",
client_address: "712 VERONA AVE",
client_phone: "608-443-9071"
},
{
id: 3,
client_name: "MAHONEY KFC – STORE-071229",
client_address: "1973 EASTWOOD DR",
client_phone: "262-674-3322"
},
{
id: 4,
client_name: "MAHONEY TACO-BELL (WEST)",
client_address: "900 RIVERSIDE DR",
client_phone: "920-335-2990"
},
{
id: 5,
client_name: "MAHONEY BURGER_KING — GREENFIELD",
client_address: "2314 S 27TH ST",
client_phone: "414-762-1288"
},
{
id: 6,
client_name: "MAHONEY CHICK-FIL-A: NORTHSIDE",
client_address: "1991 N LOOP RD",
client_phone: "920-389-6022"
},
{
id: 7,
client_name: "MAHONEY—WENDY'S_RACINE 77",
client_address: "7038 WASHINGTON AVE",
client_phone: "262-639-8172"
},
{
id: 8,
client_name: "MAHONEY / DAIRY-QUEEN (D.Q.)",
client_address: "1818 MAIN ST",
client_phone: "414-932-2890"
},
{
id: 9,
client_name: "MAHONEY*SUBWAY*SHOP_14",
client_address: "1622 CARROLL ST",
client_phone: "262-373-6604"
},
{
id: 10,
client_name: "MAHONEY BIG-BEAR BURGER / UNIT–4",
client_address: "3290 HARBOR VIEW DR",
client_phone: "920-228-5588"
}
]
Transformer 25 – Normalized Search Filter
const list = {{transformer24.value}}; // mock data above
const searchText = {{select6.value || ""}};
const query = searchText.toLowerCase().replace(/[-\s]+/g, "");
return list.filter(item =>
item.client_name.toLowerCase().replace(/[-\s]+/g, "").includes(query)
);
Live Example
Here’s the working demo: