Skip to content

Commit

Permalink
Merge pull request #38 from emiolo/master
Browse files Browse the repository at this point in the history
Corrige a função de sanitização dos valores
  • Loading branch information
cagartner authored Jan 31, 2020
2 parents 5e4a552 + 5059712 commit 9f61b92
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 9f61b92

Please sign in to comment.