### What problem does this PR solve? #5214 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)tags/v0.17.1
| otxt = txt | otxt = txt | ||||
| for r, p in patts: | for r, p in patts: | ||||
| txt = re.sub(r, p, txt, flags=re.IGNORECASE) | txt = re.sub(r, p, txt, flags=re.IGNORECASE) | ||||
| if not otxt: | |||||
| if not txt: | |||||
| txt = otxt | txt = otxt | ||||
| return txt | return txt | ||||