In the process I fixed suffix detection for patterns with more than 1 character.
integrated from pong.love via text.love: https://merveilles.town/@akkartik/108933336531898243