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

Weird unicode characters prevent event tag to be recognized #489

Open
ZephyrRaine opened this issue Feb 3, 2023 · 0 comments
Open

Weird unicode characters prevent event tag to be recognized #489

ZephyrRaine opened this issue Feb 3, 2023 · 0 comments

Comments

@ZephyrRaine
Copy link
Contributor

Hello, we detected this bug during our event games (The Shell) for SITS community.
In some instances, when the league tag (#vagueX) is parsed from the title, it will be ignored by OSR if it contains invisible unicode characters.

You'll find attached two .sgf games where this bug occurs, (notice the GN parameter of the sgf).

At first glance from @climu it looks like making this line escape more characters should work, by using .isascii() for instance :

l.142 of /league/utils.py

Thank you!

46215909-180-Tigrou49-Gruts(1).txt
46523679-177-Gruts-Leight(1).txt

@ZephyrRaine ZephyrRaine changed the title Non-unicode characters prevent event tag to be recognized Weird unicode characters prevent event tag to be recognized Feb 3, 2023
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