vladimarius / pyap

Python address detector and parser
MIT License
200 stars 60 forks source link

Improve GB postcode regex #15

Open thomasbird opened 3 years ago

thomasbird commented 3 years ago

Small MR to improve the number of matched GB postcodes, previously some in the format AA1A were not matched correctly. It is also a little more specific, so that it matches fewer things that are not real postcodes.

I've also added a test against a huge list of all GB postcodes, to ensure that none are missed as was the case before.