Closed Vagelis-Prokopiou closed 6 years ago
Hi, thanks for the change. for..of
is a feature of ES2015 so the script will not run on environments that do not support it.
I would accept that pull request for backwards compatibility, but besides the replacement of for..of
with forEach
, you have also removed the ignore
parameter from the function replaceText
. The unit test are failing because of that. Can you please re introduce it and make sure that the tests are passing?
You are right. I will open a new one. Thanx.
Γεια σου Βασίλη. Πολύ ωραίο το module σου. Έκανα μια αλλαγή στην replaceText() function, γιατί ο (non-Babel) Webpack έβγαζε πρόβλημα: "ERROR in bundle.js from UglifyJs. Unexpected token name «of», expected punc «; »". Έκανα μια απλή Array.forEach. Εάν σε ενδιαφέρει το ενσωματώνεις. Thanx.