fix for windows line endings

if the pattern file uses windows line endings (CRLF) remove the CR so the regex still matches.