Skip to content

Commit

Permalink
Ajuste para tag de memo não fechada
Browse files Browse the repository at this point in the history
  • Loading branch information
cassioperin-bling committed Nov 13, 2020
1 parent 6e6bd41 commit 262a9ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/OfxParser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ private function closeUnclosedXmlTags($line)
return '<MEMO></MEMO>';
} else if ((preg_match('/<MEMO>/', $line) === 0) && (preg_match('/<\/MEMO>$/', $line) === 1)) {
return "";
} else if ((preg_match('/<MEMO>/', $line) === 1) && (preg_match('/<\/MEMO>$/', $line) === 0)) {
return $line . "</MEMO>";
}

// Matches: <SOMETHING>blah
Expand Down

0 comments on commit 262a9ee

Please sign in to comment.