fix(Google Sheets Node): Fix Google Sheet URL regex (#10195)

This commit is contained in:
Elias Meire 2024-07-26 11:50:58 +02:00 committed by GitHub
parent 82eba9fc5f
commit e6fd996973
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',
},
},