From e6fd996973d4f40facf0ebf1eea3cc26acd0603d Mon Sep 17 00:00:00 2001 From: Elias Meire Date: Fri, 26 Jul 2024 11:50:58 +0200 Subject: [PATCH] fix(Google Sheets Node): Fix Google Sheet URL regex (#10195) --- .../nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts index e7df39ac46..3cb7866aa5 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts @@ -157,14 +157,14 @@ export const descriptions: INodeProperties[] = [ extractValue: { type: 'regex', regex: - 'https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)', + 'https:\\/\\/docs\\.google.com\\/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+.*\\#gid=([0-9]+)', }, validation: [ { type: 'regex', properties: { regex: - 'https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)', + 'https:\\/\\/docs\\.google.com\\/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+.*\\#gid=([0-9]+)', errorMessage: 'Not a valid Sheet URL', }, },