13o-bbr-bbq / machine_learning_security

Source code about machine learning and security.
1.96k stars 645 forks source link

Tidy re match #39

Closed iBM88 closed 5 years ago

iBM88 commented 5 years ago

When using Tidy for HTML matching check, the regular expression to get the count of warnings and errors might not work with all Tidy versions. Therefore I had to switch from: str_pattern = r'.*Tidy found ([0-9]+) warnings and ([0-9]+) errors.*$' to: str_pattern = r'.*([0-9]+) warnings, ([0-9]+) error were found!.*$'

iBM88 commented 5 years ago

sorry, duplicated.