Skip to content

fix: match passed values case insensitively in parse_expression#2307

Open
SAY-5 wants to merge 1 commit into
hgrecco:masterfrom
SAY-5:fix-parse-expression-case-insensitive-values
Open

fix: match passed values case insensitively in parse_expression#2307
SAY-5 wants to merge 1 commit into
hgrecco:masterfrom
SAY-5:fix-parse-expression-case-insensitive-values

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 12, 2026

Copy link
Copy Markdown

When case_sensitive=False, parse_expression looked up **values keys with an exact-case match, so a token like Constant would fall through to a unit lookup and raise UndefinedUnitError. It now also matches the passed value names case insensitively.

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.

parse_expression does not treat passed constants as case insensitive

1 participant