From 318482c19597bc8e6fc2cc99f17779cffa1d0571 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 17 Feb 2026 16:06:12 -0500 Subject: [PATCH] feature/IO-3523-Fortellis-Corrections-2 - Fix --- server/fortellis/fortellis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/fortellis/fortellis.js b/server/fortellis/fortellis.js index d08e3a519..ad77dbe6c 100644 --- a/server/fortellis/fortellis.js +++ b/server/fortellis/fortellis.js @@ -432,8 +432,8 @@ async function QueryDmsCustomerByName({ socket, redisHelpers, JobData }) { //? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction. ? [["phone", JobData.ownr_ph1?.replace(replaceSpecialRegex, "")]] : [ - ["firstName", JobData.ownr_fn?.replace(replaceSpecialRegex, "").toUpperCase()], - ["lastName", JobData.ownr_ln?.replace(replaceSpecialRegex, "").toUpperCase()] + ["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z-]/g, "").toUpperCase()], + ["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z-]/g, "").toUpperCase()] ]; try { const result = await MakeFortellisCall({ @@ -474,9 +474,9 @@ async function InsertDmsCustomer({ socket, redisHelpers, JobData }) { } : { customerName: { //"suffix": "Mr.", - firstName: JobData.ownr_fn && JobData.ownr_fn.replace(replaceSpecialRegex, "").toUpperCase(), + firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z-]/g, "").toUpperCase(), //"middleName": "", - lastName: JobData.ownr_ln && JobData.ownr_ln.replace(replaceSpecialRegex, "").toUpperCase() + lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z-]/g, "").toUpperCase() //"title": "", //"nickName": "" }