Skip to content

Commit

Permalink
fix(Google Sheets Node): Fix short sheet name interpreted as range (#…
Browse files Browse the repository at this point in the history
…6989)

Github issue / Community forum post (link here to close automatically):
#6203
  • Loading branch information
maspio committed Aug 22, 2023
1 parent 0ddfc73 commit 00268a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class GoogleSheet {
const [sheet, ranges] = range.split('!');
return `${encodeURIComponent(sheet)}!${ranges}`;
}
return encodeURIComponent(range);
// Use '' so that sheet is not interpreted as range
return encodeURIComponent(`'${range}'`);
}

/**
Expand Down

0 comments on commit 00268a0

Please sign in to comment.