(date: Date)
| 20 | } |
| 21 | |
| 22 | function asBasicISOString(date: Date): string { |
| 23 | const isoString = date.toISOString(); |
| 24 | |
| 25 | return isoString.replace(/[-:]|(\.\d+Z)/g, ""); |
| 26 | } |
| 27 | |
| 28 | function reformatCodeBlocks(msgText: string): string { |
| 29 | const codeBlockFenceRegex = /```((.*?\.(\w+))\s*.*)\n/g; |