Skip to content

Weird unicode characters prevent event tag to be recognized #489

@ZephyrRaine

Description

@ZephyrRaine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions