forked from MarseyWorld/MarseyWorld
fix images in slur replacer (#359)
doesn't work with ALL CAPS TEXT, there's prolly a better way for thismaster
parent
6330aabe88
commit
e00bf1f9a8
|
@ -111,7 +111,7 @@ def sub_matcher(match, upper=False):
|
||||||
return match.group(0)
|
return match.group(0)
|
||||||
else:
|
else:
|
||||||
repl = SLURS[match.group(0).lower()]
|
repl = SLURS[match.group(0).lower()]
|
||||||
return repl if not upper else repl.upper()
|
return repl if not upper or "<img" in repl else repl.upper()
|
||||||
|
|
||||||
def sub_matcher_upper(match):
|
def sub_matcher_upper(match):
|
||||||
return sub_matcher(match, upper=True)
|
return sub_matcher(match, upper=True)
|
||||||
|
|
Loading…
Reference in New Issue