Skip to content

fix: fix a simple python bug in heuristic.py#233

Open
omardoescode wants to merge 1 commit intos0md3v:masterfrom
omardoescode:python-bug-fix
Open

fix: fix a simple python bug in heuristic.py#233
omardoescode wants to merge 1 commit intos0md3v:masterfrom
omardoescode:python-bug-fix

Conversation

@omardoescode
Copy link

@omardoescode omardoescode commented Oct 1, 2025

In python, an expression such as ("required" or "missing") in response.lower() resolves to "required" in response.lower() because "required" is a truthy value.

After reading code, I think this is not the desired action, but rather checking for the existence of either words in the response text.

@omardoescode omardoescode changed the title fix: fix a simple python bug in hueristic.py fix: fix a simple python bug in heuristic.py Oct 1, 2025
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