diff --git a/.changeset/olive-hounds-search.md b/.changeset/olive-hounds-search.md new file mode 100644 index 0000000..ea33a34 --- /dev/null +++ b/.changeset/olive-hounds-search.md @@ -0,0 +1,5 @@ +--- +"@connectk12/exceljs": patch +--- + +Update findMatchingRowById to sanitize text diff --git a/src/data.ts b/src/data.ts index 172a88d..ddbe585 100644 --- a/src/data.ts +++ b/src/data.ts @@ -130,8 +130,9 @@ export const findMatchingRowById = ({ } const row = rows.find((row) => { - const lookupValue = sanitizeText(row.getCell(lookupCol).value?.toString()); - return id === lookupValue; + const _id = sanitizeText(id); + const _lookupValue = sanitizeText(row.getCell(lookupCol).value?.toString()); + return _id === _lookupValue; }); if (!row && opts?.findSimilarMatchWithLastDigits) {