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

Cs50x Tideman - regex causing student's variables to be changed. #301

Open
max-min-median opened this issue Dec 14, 2024 · 0 comments
Open

Comments

@max-min-median
Copy link

On line 17 of __init__.py, the regex used to replace the student's main function is

re.sub("int\s+main", "int distro_main", ...)

This causes variables like int main_winner or int maintenance to be replaced. Suggest changing the regex to

re.sub(r"int\s+main\(", "int distro_main(", ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant