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

add handleOperator function to fix bugs #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rpollock03
Copy link
Contributor

Hi @rudyt7, as per issue #11 I have added an operators function. This will prevent the user from entering multiple operators in a row eg "+-/" and also prevent them from beginning the calculation with an operator that is not "-". So "-42" is allowed but "/42" is not allowed.

This should resolve the issue. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant