10000 safer regex search solution · Issue #2 · davidohnee/cevlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
safer regex search solution #2
Open
@github-actions

Description

@github-actions

https://github.com/dxstiny/cevlib/blob/6fa393b99e515247dd57b397a8a2a9f65e383958/cevlib/competitions.py#L402

        if self._gender == CompetitionGender.Unknown:
            match = re.search(r'U([0-9]{2})([MW])', entry)
            assert match # TODO safer regex search solution
            age = match.group(1)
            gender = match.group(2)
            self._age = int(age) if age else None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0