Skip to content

Commit

Permalink
feat: improve postcode extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 7, 2024
1 parent 8dac920 commit 1122a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate_web/management/commands/migrate_postcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from weblate_web.payments.models import Customer

POSTCODE_RE = re.compile(
r"\b((?:(?:[A-Z]{2,} ?)?[0-9][0-9- ]{2,}[0-9])|[0-9]{4}|[A-Z0-9]{4} ?[A-Z0-9]{3})\b"
r"\b((?:(?:[A-Z]{1,}[ -]?)?[0-9][0-9- ]{2,}[0-9])|[0-9]{4}|[A-Z0-9]{4} ?[A-Z0-9]{3})\b"
)


Expand Down

0 comments on commit 1122a71

Please sign in to comment.