germanphonetic icon indicating copy to clipboard operation
germanphonetic copied to clipboard

function changeUnnecessary might be wrong

Open wellhowtosay opened this issue 2 years ago • 0 comments

I don't speak German, but changeUnnecessary might be wrong text = original.replace(regex1[i], regex2[i]) you see, you iterate over array regex1 and regex2, I think you mean to replace all characters in regex1 to with its counterpart in regex2, then the following code may produce the expected result: text = text.replace(regex1[i], regex2[i])

wellhowtosay avatar Jun 27 '22 05:06 wellhowtosay