Trim repeat for next.
npm install -S @jswork/next-trim-repeated
import '@jswork/next-trim-repeated';
nx.trimRepeated('foo--bar---baz', '-');
//=> 'foo-bar-baz'
nx.trimRepeated('foo@#@#baz', '@#');
//=> 'foo@#baz'
Code released under the MIT license.