Skip to content

Firefly III: a personal finances manager

Correctly remove the "Naam" and it's value

Ruben Verhoef21fcb6f853af
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]);
}
/**