forked from MarseyWorld/MarseyWorld
fix posting
parent
eae3f51c56
commit
c380572c13
|
@ -107,7 +107,8 @@ color_regex = re.compile("[a-f0-9]{6}", flags=re.A)
|
|||
|
||||
# lazy match on the {}?, only match if there is trailing stuff
|
||||
# Specifically match Snappy's way of formatting, this might break some losers' comments.
|
||||
showmore_regex = re.compile(r"^((.{3000,}?|(.*?<.*?){10,})?<\/p>(?:<\/li><\/ul>)?)(\s*<p>.*)", flags=re.A|re.DOTALL)
|
||||
# showmore_regex = re.compile(r"^((.{3000,}?|(.*?<.*?){10,})?<\/p>(?:<\/li><\/ul>)?)(\s*<p>.*)", flags=re.A|re.DOTALL)
|
||||
showmore_regex = re.compile(r"^(.{3000,}?</p>(?:</li></ul>)?)(\s*<p>.*)", flags=re.A|re.DOTALL)
|
||||
|
||||
search_token_regex = re.compile('"([^"]*)"|(\S+)', flags=re.A)
|
||||
|
||||
|
|
Loading…
Reference in New Issue