libwww-perl / HTML-Parser

The HTML-Parser distribution is is a collection of modules that parse and extract information from HTML documents.
Other
6 stars 13 forks source link

fix compatibility with ancient perl by avoiding index in test #33

Closed haarg closed 2 years ago

haarg commented 2 years ago

Perl 5.8.5 and older have bugs in the index function that prevent it from matching a downgraded string to an upgraded string. Regex matches don't suffer from the same bug, so we can use them instead and be compatible with all relevant versions.