Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function changeUnnecessary might be wrong #16

Open
wellhowtosay opened this issue Jun 27, 2022 · 0 comments
Open

function changeUnnecessary might be wrong #16

wellhowtosay opened this issue Jun 27, 2022 · 0 comments
Labels

Comments

@wellhowtosay
Copy link

wellhowtosay commented Jun 27, 2022

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])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants