mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Microsoft Excel 365 Node): Better error and description on unsupported range in upsert, update, getRange operations (#8452)
This commit is contained in:
@@ -206,3 +206,14 @@ export function updateByAutoMaping(
|
||||
|
||||
return summary;
|
||||
}
|
||||
|
||||
export const checkRange = (node: INode, range: string) => {
|
||||
const rangeRegex = /^[A-Z]+:[A-Z]+$/i;
|
||||
|
||||
if (rangeRegex.test(range)) {
|
||||
throw new NodeOperationError(
|
||||
node,
|
||||
`Specify the range more precisely e.g. A1:B5, generic ranges like ${range} are not supported`,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user