replace `..` in match patterns with `...`