(name: string)
| 103 | ): string => { |
| 104 | // Check if a name is already quoted |
| 105 | const isAlreadyQuoted = (name: string) => { |
| 106 | return ( |
| 107 | (name.startsWith('"') && name.endsWith('"')) || |
| 108 | (name.startsWith('`') && name.endsWith('`')) || |
| 109 | (name.startsWith('[') && name.endsWith(']')) |
| 110 | ); |
| 111 | }; |
| 112 | |
| 113 | // Only add quotes if needed and not already quoted |
| 114 | const quoteIfNeeded = (name: string) => { |
no outgoing calls
no test coverage detected