MCPcopy Index your code
hub / github.com/simstudioai/sim / quoteSheetName

Function quoteSheetName

apps/sim/blocks/blocks/microsoft_excel.ts:52–55  ·  view source on GitHub ↗

Wraps a worksheet name in single quotes when it contains characters that require escaping in an address.

(sheetName: string)

Source from the content-addressed store, hash-verified

50
51/** Wraps a worksheet name in single quotes when it contains characters that require escaping in an address. */
52function quoteSheetName(sheetName: string): string {
53 if (/^[A-Za-z0-9_]+$/.test(sheetName)) return sheetName
54 return `'${sheetName.replace(/'/g, "''")}'`
55}
56
57export const MicrosoftExcelBlock: BlockConfig<MicrosoftExcelResponse> = {
58 type: 'microsoft_excel',

Callers 1

microsoft_excel.tsFile · 0.85

Calls 2

testMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected