sfcode
An Online Competing and Development Environment
|
Trim a consecutively repeated substring:
foo--bar---baz
→foo-bar-baz
Required
Type: string
Required
Type: string
Substring to trim.
condense-whitespace
- Remove leading, trailing and repeated whitespace from a stringMIT © Sindre Sorhus