Skip to content

Commit

Permalink
Merge pull request #1 from emiolo/SkyaTura-patch-1
Browse files Browse the repository at this point in the history
Corrige a função de sanitização dos valores
  • Loading branch information
SkyaTura authored Jan 31, 2020
2 parents 5e4a552 + ddf47bd commit 5059712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cagartner/CorreiosConsulta/CorreiosConsulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected static function cleanPostcode($postcode)
*/
protected function cleanMoney($value)
{
return (float) str_replace(',', '.', $value);
return (float) str_replace(',', '.', str_replace('.', '', $value));
}

/**
Expand Down

0 comments on commit 5059712

Please sign in to comment.