(str: string)
| 362 | } |
| 363 | |
| 364 | export function escapeSingleQuotes(str: string) { |
| 365 | return str.replace(/'/g, "''"); |
| 366 | } |
| 367 | |
| 368 | export function unescapeSingleQuotes(str: string, ignoreFirstAndLastChar: boolean) { |
| 369 | const regex = ignoreFirstAndLastChar ? /(?<!^)'(?!$)/g : /'/g; |
no outgoing calls
no test coverage detected