Skip to content

Commit

Permalink
Merge pull request #17 from mlutfy/canadapost
Browse files Browse the repository at this point in the history
Add support for fr_CA/en_CA postcodes
  • Loading branch information
xurizaemon committed Aug 26, 2022
2 parents 62f8368 + 169c6b1 commit 909e28b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Civi/Anonymize/FieldModifyProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ protected function random_phone() {
protected function random_postal_code() {
$this->addSQLUpdateFromLocaleBasedPatterns(array(
'en_US' => '\d\d\d\d\d',
'en_CA' => '\u\d\u \d\u\d',
'fr_CA' => '\u\d\u \d\u\d',
));
}

Expand Down

0 comments on commit 909e28b

Please sign in to comment.