Last name does not match regex validation in Langley
Closed this issue · 2 comments
rafe-murray commented
I have been having an issue where one of the councillors' last names is vanPopta which doesn't match the regex which validates the names. I can think of two options to work around this:
- I change the name to a name that matches the regex, i.e., Vanpopta
- The regex for validation gets changed to allow for this type of name
I discussed with @seamuslee001 and he thought that option 2 was better. @jpmckinney what is your recommended approach?
The page with her name: https://www.tol.ca/en/the-township/misty-vanpopta.aspx
The relevant scraper: https://github.com/opencivicdata/scrapers-ca/blob/eec11c735f3779d444abb5f5563e045c3904bf80/ca_bc_langley/people.py
jpmckinney commented
I've updated the regex. try now?
rafe-murray commented
Fixed. Thanks!