From 21fcb6f853afef6011336e4639957ef55c65b14a Mon Sep 17 00:00:00 2001 From: Ruben Verhoef Date: Sun, 23 Feb 2020 18:38:21 +0100 Subject: [PATCH] Correctly remove the "Naam" and it's value --- app/Import/Specifics/IngDescription.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Import/Specifics/IngDescription.php b/app/Import/Specifics/IngDescription.php index a2cb15027e..4a1eac5bf2 100644 --- a/app/Import/Specifics/IngDescription.php +++ b/app/Import/Specifics/IngDescription.php @@ -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]); } /**