Merge branch 'dev'

This commit is contained in:
Nick Shirokov
2026-03-12 15:44:51 +03:00
+7 -1
View File
@@ -2055,7 +2055,7 @@ export async function fillTableRow(fields, { tab, add, row } = {}) {
}
prevCellId = cell.id;
// Fuzzy match cell name to user field: exact → suffix → includes
// Fuzzy match cell name to user field: exact → suffix → includes → no-space includes
const cellLower = cell.fullName.toLowerCase();
let matchedKey = null;
for (const [key, info] of pending) {
@@ -2065,6 +2065,12 @@ export async function fillTableRow(fields, { tab, add, row } = {}) {
matchedKey = key;
break;
}
// CamelCase cell names have no spaces — try matching without spaces
const klNoSpace = kl.replace(/\s+/g, '');
if (klNoSpace && (cellLower.endsWith(klNoSpace) || cellLower.includes(klNoSpace))) {
matchedKey = key;
break;
}
}
if (!matchedKey) {