forked from MarseyWorld/MarseyWorld
fix showmore regex (yet again) (#347)
parent
673cbdc187
commit
d00d685c77
|
@ -93,7 +93,7 @@ color_regex = re.compile("[a-z0-9]{6}", flags=re.A)
|
|||
|
||||
# lazy match on the {}?, only match if there is trailing stuff
|
||||
# don't match between nested </p></li> etc, this can break but works for Snappy
|
||||
showmore_regex = re.compile(r"^(.{3000,}?</p>)(\s*<[^/].*)", flags=re.A|re.DOTALL)
|
||||
showmore_regex = re.compile(r"^(.{3000,}?</p>)(\s*<p>.*)", flags=re.A|re.DOTALL)
|
||||
|
||||
search_token_regex = re.compile('"([^"]*)"|(\S+)', flags=re.A)
|
||||
|
||||
|
|
Loading…
Reference in New Issue