Skip to content

Commit

Permalink
#928 Fetch Aurora History (hack deal double spaces)
Browse files Browse the repository at this point in the history
  • Loading branch information
inikoo committed Oct 5, 2024
1 parent 7022698 commit 0a61c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Transfers/Aurora/WithParseUpdateHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ protected function parseHistoryUpdatedOldValues($auditable): array
$field = $this->getField();

$haystack = $this->auroraModelData->{'History Details'};


$haystack = trim(preg_replace('/\s+/', ' ', $haystack));

if (preg_match('/<div class="field tr"><div>Old value:<\/div><div>(.*)<\/div><\/div>/', $haystack, $matches)) {
$oldValues = $this->extractFromTable($matches, $oldValues, $field, $auditable);
} elseif (preg_match('/<div class="field tr"><div>Alter Wert:<\/div><div>(.*)<\/div><\/div>/', $haystack, $matches)) {
Expand Down

0 comments on commit 0a61c51

Please sign in to comment.