mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 16:40:10 +00:00
Merge pull request #3197 from rubenverhoef/CSV-ING
Fix small issue from #3146
This commit is contained in:
@@ -140,7 +140,11 @@ class IngDescription implements SpecificInterface
|
|||||||
*/
|
*/
|
||||||
protected function removeNameIngDescription(): void
|
protected function removeNameIngDescription(): void
|
||||||
{
|
{
|
||||||
$this->row[8] = preg_replace('/Naam:.*?([a-zA-Z\/]+:)/', '$1', $this->row[8]);
|
$matches = array();
|
||||||
|
if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) {
|
||||||
|
$this->row[9] = date("Ymd", strtotime($matches[1]));
|
||||||
|
$this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user