(isoString: string)
| 44 | } |
| 45 | |
| 46 | function formatDatetime(isoString: string): string { |
| 47 | return isoString |
| 48 | .replace(/\.\d{3}Z$/, "") |
| 49 | .replace(/Z$/, "") |
| 50 | .replace(/[+-]\d{2}:\d{2}$/, ""); |
| 51 | } |
| 52 | |
| 53 | export class GitHubBackend implements Backend { |
| 54 | private readonly baseUrl = "https://api.github.com"; |