From 83a30f1fcd8e27e14b67b76bfaf28919190693f7 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 19 Feb 2026 13:17:15 -0800 Subject: [PATCH] IO-3570 Strip - from Owner Name in regex Signed-off-by: Allan Carr --- server/fortellis/fortellis.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/fortellis/fortellis.js b/server/fortellis/fortellis.js index 6a3b4e31d..21db8c9c6 100644 --- a/server/fortellis/fortellis.js +++ b/server/fortellis/fortellis.js @@ -427,8 +427,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(/[^0-9]/g, "")]] : [ - ["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()], - ["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase()] + ["firstName", JobData.ownr_fn?.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()], + ["lastName", JobData.ownr_ln?.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()] ]; try { const result = await MakeFortellisCall({ @@ -471,9 +471,9 @@ async function InsertDmsCustomer({ socket, redisHelpers, JobData }) { : { customerName: { //"suffix": "Mr.", - firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase(), + firstName: JobData.ownr_fn && JobData.ownr_fn.replace(/[^a-zA-Z0-9]/g, "").toUpperCase(), //"middleName": "", - lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z0-9-]/g, "").toUpperCase() + lastName: JobData.ownr_ln && JobData.ownr_ln.replace(/[^a-zA-Z0-9]/g, "").toUpperCase() //"title": "", //"nickName": "" } @@ -1297,7 +1297,7 @@ async function DeleteDmsWip({ socket, redisHelpers, JobData }) { async function MarkJobExported({ socket, jobid, JobData, redisHelpers }) { CreateFortellisLogEvent(socket, "DEBUG", `Marking job as exported for id ${jobid}`); - + const transwips = await redisHelpers.getSessionTransactionData( socket.id, getTransactionType(JobData.id),