Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz - View it on GitHub
Star
19
Rank
847721