sindresorhus / filenamify

Convert a string to a valid safe filename
MIT License
489 stars 26 forks source link

Add option to avoid deleting repeated replacement. #37

Closed orsett0 closed 1 year ago

orsett0 commented 1 year ago

Add a new option preserveRepeatedReplacements. If it's set to true, avoids squashing consecutive occurrences of the replacement string. Defaults to false to preserve current behavior.

Fixes #10