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

st.from_regex(re.compile("[\u0130_]", re.IGNORECASE)) triggers internal error #2657

Closed
Zac-HD opened this issue Nov 8, 2020 · 0 comments · Fixed by #2660
Closed

st.from_regex(re.compile("[\u0130_]", re.IGNORECASE)) triggers internal error #2657

Zac-HD opened this issue Nov 8, 2020 · 0 comments · Fixed by #2660
Assignees
Labels
bug something is clearly wrong here

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Nov 8, 2020

\u0130, Latin Capital Letter I with Dot Above, lower-cases to i\u0307; and in turn if we have this in a regex character set we eventually trigger an internal error by passing it to ord() (which requires single-character strings).

I suspect that this is symptomatic of more general mishandling of length-changing case handling and will investigate.

@Zac-HD Zac-HD added the bug something is clearly wrong here label Nov 8, 2020
@Zac-HD Zac-HD self-assigned this Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is clearly wrong here
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant