node-diacritics icon indicating copy to clipboard operation
node-diacritics copied to clipboard

Code optimalizations

Open ghost opened this issue 7 years ago • 0 comments

Changing creation of diacriticsMap from for loop to decrementing while loop may bee an overkill, but reuse of RE_DIACRITICS and replacer function is a good pattern, don't you think?

ghost avatar Oct 01 '17 18:10 ghost