diff options
Diffstat (limited to 'webAO/encoding.ts')
| -rw-r--r-- | webAO/encoding.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webAO/encoding.ts b/webAO/encoding.ts index 2d1f66f..5e53340 100644 --- a/webAO/encoding.ts +++ b/webAO/encoding.ts @@ -4,10 +4,10 @@ */ export function escapeChat(estring: string): string { return estring - .replace('#', '<num>') - .replace('&', '<and>') - .replace('%', '<percent>') - .replace('$', '<dollar>'); + .replaceAll('#', '<num>') + .replaceAll('&', '<and>') + .replaceAll('%', '<percent>') + .replaceAll('$', '<dollar>'); } /** @@ -16,10 +16,10 @@ export function escapeChat(estring: string): string { */ export function unescapeChat(estring: string): string { return estring - .replace('<num>', '#') - .replace('<and>', '&') - .replace('<percent>', '%') - .replace('<dollar>', '$'); + .replaceAll('<num>', '#') + .replaceAll('<and>', '&') + .replaceAll('<percent>', '%') + .replaceAll('<dollar>', '$'); } /** |
