Fix regex issues causing text resizing to go mental