(str)
| 226 | return flattened; |
| 227 | } |
| 228 | function escapeLabelValue(str) { |
| 229 | if (typeof str !== 'string') { |
| 230 | return str; |
| 231 | } |
| 232 | return escapeString(str).replace(/"/g, '\\"'); |
| 233 | } |
| 234 | function escapeString(str) { |
| 235 | return str.replace(/\\/g, '\\\\').replace(/\n/g, '\\n'); |
| 236 | } |
no test coverage detected