Skip to content

Commit

Permalink
Merge pull request #2 from travisulrich/patch-2
Browse files Browse the repository at this point in the history
Fix regular expression
  • Loading branch information
adamlc committed Apr 16, 2014
2 parents 125511f + 2d68d8f commit 47963c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adamlc/AddressFormat/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function formatAddress($html = false, $condensed = false)

//Optionally remove blank lines from the resulting address
if ($condensed){
$formatted_address = preg_replace('([\%n]+)', '%n', $formatted_address);
$formatted_address = preg_replace('((\%n)+)', '%n', $formatted_address);
}

//Replace new lines!
Expand Down

0 comments on commit 47963c2

Please sign in to comment.