forked from rDrama/rDrama
Snakes
aaf718c78c
h/t to @official-techsupport for finding and help fixing this bug. When given certain pathological input, `sanitize` would time out (notably only on posts, rather than comments, perhaps due to the longer maximum length of input). For example, using as input the result of: with open("test.txt", "w") as f: for i in range(26): f.write(f":{chr(ord('a') + i)}: ") f.write('x' * 20_000) We believe this to be because of some combination of the greedy quantifiers and the negative lookahead before the match. The regex was rewritten to (in theory) have much more linear performance. |
||
---|---|---|
.. | ||
actions.py | ||
alerts.py | ||
awards.py | ||
blackjack.py | ||
const.py | ||
cron.py | ||
discord.py | ||
get.py | ||
jinja2.py | ||
lazy.py | ||
lottery.py | ||
media.py | ||
offsitementions.py | ||
regex.py | ||
sanitize.py | ||
security.py | ||
slots.py | ||
stats.py | ||
treasure.py | ||
wrappers.py |