486429a Try to fix an issue with the regex which was not matching many lines

Authored and Committed by Stephen Smoogen 2 years ago
    Try to fix an issue with the regex which was not matching many lines
    
    The issue seems to be that
     r'(?P<product>(libdnf(?:/(?P<product_version>\S+)))|rpm-ostree?)\s+'
    fails to match data on lines like
    
    "libdnf (Red Hat Enterprise Linux 8.4; generic; Linux.x86_64)"
    "rpm-ostree/2020.5"
    "libdnf/2020 (Red Hat Enterprise Linux 8.4; generic; Linux.x86_64)"
    "rpm-ostree (Red Hat Enterprise Linux 8.4; generic; Linux.x86_64)"
    
    Changing it to
    r'(?P<product>(libdnf|rpm-ostree)(?:/(?P<product_version>\S+))?)\s+'
    
    gave data.
    
    Signed-off-by: Stephen Smoogen <smooge@smoogespace.com>
    
        
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1