mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Correctly remove the "Naam" and it's value
This commit is contained in:
parent
9b0a890531
commit
21fcb6f853
@ -111,12 +111,11 @@ class IngDescription implements SpecificInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove name from the description (Remove everything before the description incl the word 'Omschrijving' ).
|
* Remove "Naam" (and its value) from the description.
|
||||||
*/
|
*/
|
||||||
protected function removeNameIngDescription(): void
|
protected function removeNameIngDescription(): void
|
||||||
{
|
{
|
||||||
// Try remove everything before the 'Omschrijving'
|
$this->row[8] = preg_replace('/Naam:.*?([a-zA-Z\/]+:)/', '$1', $this->row[8]);
|
||||||
$this->row[8] = preg_replace('/.+Omschrijving: /', '', $this->row[8]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user