(string: string)
| 98 | |
| 99 | // textEncode(string) to encode characters for image processing |
| 100 | export function textEncode(string: string) { |
| 101 | return string |
| 102 | .replaceAll("&", "&") |
| 103 | .replaceAll(">", ">") |
| 104 | .replaceAll("<", "<") |
| 105 | .replaceAll('"', """) |
| 106 | .replaceAll("'", "'") |
| 107 | .replaceAll("\\n", "\n") |
| 108 | .replaceAll("\\:", ":") |
| 109 | .replaceAll("\\,", ","); |
| 110 | } |
| 111 | |
| 112 | const activityTypes = ["online", "dnd", "idle", "invisible"]; |
| 113 |
no outgoing calls
no test coverage detected