(str: string)
| 7 | } |
| 8 | |
| 9 | export function unescapeIdentity(str: string) { |
| 10 | let r = str.replace(/^["`[]/g, ""); |
| 11 | r = r.replace(/["`\]]$/g, ""); |
| 12 | r = r.replace(/""/g, `"`); |
| 13 | return r; |
| 14 | } |
| 15 | |
| 16 | export function escapeSqlString(str: string) { |
| 17 | return `'${str.replace(/'/g, `''`)}'`; |
no outgoing calls
no test coverage detected