Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates: de: improve parsing QualityHosting lines #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 8, 2022

  1. templates: de: improve parsing QualityHosting lines

    A single QualityHosting invoice position spans across multiple lines.
    For that reason it uses a very generic RegEx for middle lines:
    line: '^\s+(?P<desc>.+)$'
    
    That doesn't work well with multi-page invoices. It's because above
    RegEx matches page footer lines. That results in footer content getting
    extracted as invoice line "desc".
    
    Improve that situation by adding "last_line" RegEx matching position
    last line. That prevents parsing lines between last and first lines
    (e.g. footer content).
    
    Signed-off-by: Rafał Miłecki <[email protected]>
    Rafał Miłecki committed Oct 8, 2022
    Configuration menu
    Copy the full SHA
    7c38f98 View commit details
    Browse the repository at this point in the history