diff options
| author | stonedDiscord <stoned@derpymail.org> | 2020-04-07 14:31:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-07 14:31:34 +0200 |
| commit | 7b152558ce8edd5a562e859dfc5933e9e2ceb72b (patch) | |
| tree | a8d11bd97ce42ed207566ce06c26777cbe7814fd /webAO/encoding.js | |
| parent | beef46a39b486e025748d2c9d71e95382aa5e1da (diff) | |
| parent | 60a9f47f9117c4188f5eae26642b79bc8d8f7c74 (diff) | |
Merge branch 'master' into lazy_charloading
Diffstat (limited to 'webAO/encoding.js')
| -rw-r--r-- | webAO/encoding.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/encoding.js b/webAO/encoding.js index 76e0b6d..3249617 100644 --- a/webAO/encoding.js +++ b/webAO/encoding.js @@ -82,4 +82,13 @@ export function decodeChat(estring) { } else { return estring; } +} + +/** + * XXX: a nasty hack made by gameboyprinter. + * @param {string} msg chat message to prepare for display + */ +export function prepChat(msg) { + // TODO: make this less awful + return unescapeChat(decodeChat(msg)); }
\ No newline at end of file |
