intentionet / netconan

netconan - a Network Configuration Anonymizer
Apache License 2.0
145 stars 12 forks source link

IP anonymization doesn't apply with `1.2.3.4;` #143

Closed dhalperi closed 3 years ago

dhalperi commented 3 years ago

I see a fairly complicated "next character" regex here -- why can't it just be [^\d] - or the right thing for "not a digit"?

https://github.com/intentionet/netconan/blob/master/netconan/ip_anonymization.py#L35