(str: string)
| 154 | } |
| 155 | |
| 156 | function applyCurlyDoubleQuotes(str: string): string { |
| 157 | const chars = [...str] |
| 158 | const result: string[] = [] |
| 159 | for (let i = 0; i < chars.length; i++) { |
| 160 | if (chars[i] === '"') { |
| 161 | result.push( |
| 162 | isOpeningContext(chars, i) |
| 163 | ? LEFT_DOUBLE_CURLY_QUOTE |
| 164 | : RIGHT_DOUBLE_CURLY_QUOTE, |
| 165 | ) |
| 166 | } else { |
| 167 | result.push(chars[i]!) |
| 168 | } |
| 169 | } |
| 170 | return result.join('') |
| 171 | } |
| 172 | |
| 173 | function applyCurlySingleQuotes(str: string): string { |
| 174 | const chars = [...str] |
no test coverage detected