mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #1474
This commit is contained in:
@@ -109,6 +109,11 @@ class Amount implements ConverterInterface
|
||||
*/
|
||||
private function stripAmount(string $value): string
|
||||
{
|
||||
if (0 === strpos($value, '--')) {
|
||||
$value = substr($value, 2);
|
||||
}
|
||||
|
||||
|
||||
$str = preg_replace('/[^\-\(\)\.\,0-9 ]/', '', $value);
|
||||
$len = \strlen($str);
|
||||
if ('(' === $str[0] && ')' === $str[$len - 1]) {
|
||||
|
Reference in New Issue
Block a user