(str: string, opt_values: string[])
| 273 | } |
| 274 | |
| 275 | function formatDateTime(str: string, opt_values: string[]) { |
| 276 | if (opt_values) { |
| 277 | str = str.replace(/\{([^}]+)}/g, function (match, key) { |
| 278 | return Object.hasOwn(opt_values, key) ? opt_values[key] : match; |
| 279 | }); |
| 280 | } |
| 281 | return str; |
| 282 | } |
| 283 | |
| 284 | function padNumber( |
| 285 | num: number, |
no test coverage detected
searching dependent graphs…