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

Fix retrosheet ids to allow for short last names #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SushiInYourFace
Copy link

Currently, the pattern [a-z]{5}[01][0-9]{2} is used to check whether a person_id is also a valid player_id. However this pattern fails for players who have last names shorter than 4 letters, such as Gavin Lux (lux-g001) or Chin-lung Hu (hu--c001). I've updated the pattern to [-a-z]{5}[01][0-9]{2} to allow for this type of player.

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.

1 participant