krayzpipes / txt-ferret

Identify and classify data in your text files with Python.
Apache License 2.0
4 stars 1 forks source link

Fixed bug with regex and gzip introduced in version 0.1.1 Fixes #27 #28

Closed krayzpipes closed 5 years ago

krayzpipes commented 5 years ago

For the empty string in the substitution process before passing to sanity check, I added the empty string as an attribute of the Filter object. That way, we can set the string to bytes string at creation time of the filter (one time per filter at the beginning of the script) instead of doing so before each substitution (ex: before each time we pass the string to sanity checks...yuck).