Closed this issue 5 years ago · 1 comments
Let's say we're replacing: f*uck with: butterfly
f*uck
butterfly
The goal is to have following results: f*ck => butterfly F*ck => Butterfly F*CK => BUTTERFLY
f*ck
F*ck
Butterfly
F*CK
BUTTERFLY
It would be good to start with unit tests and do TDD. Whole magic is happening in cleaner.js class.
cleaner.js
Done with #6.