mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
Changed ansi parser to strip hard-coded ansi codes inserted raw into the stream, as discussed in #551.
This commit is contained in:
parent
6e046b39d0
commit
8afdbc6adb
1 changed files with 3 additions and 0 deletions
|
|
@ -189,6 +189,9 @@ class ANSIParser(object):
|
|||
if not string:
|
||||
return ''
|
||||
|
||||
# remove hard-coded strings
|
||||
string = self.strip_raw_codes(string)
|
||||
|
||||
# check cached parsings
|
||||
global _PARSE_CACHE
|
||||
cachekey = "%s-%s-%s" % (string, strip_ansi, xterm256)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue