(string: string, length: number)
| 36 | } |
| 37 | |
| 38 | export function pad(string: string, length: number) { |
| 39 | if (string.length < length) { |
| 40 | return `0`.repeat(length - string.length) + string; |
| 41 | } |
| 42 | return string; |
| 43 | } |
| 44 | |
| 45 | export const slugify = (message: string) => { |
| 46 | let slug = message |
no outgoing calls
no test coverage detected