Correctly remove the "Naam" and it's value

This commit is contained in:
Ruben Verhoef 2020-02-23 18:38:21 +01:00
parent 9b0a890531
commit 21fcb6f853

View File

@ -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
{
// Try remove everything before the 'Omschrijving'
$this->row[8] = preg_replace('/.+Omschrijving: /', '', $this->row[8]);
$this->row[8] = preg_replace('/Naam:.*?([a-zA-Z\/]+:)/', '$1', $this->row[8]);
}
/**