You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use presidio to identify and remove IP addresses, and I ran into the following issue. It was recognizing '::' as a string containing an IP address, and '2345:0425:2CA1:0000:0000:0567:5673:23b5' was not being recognized as an IP address. I ran a couple of tests as follows:
This made it seem like it is just identifying an IPV6 address as any element that contains two consecutive colons. I then checked the source code, and found this in the tests:
I was trying to use presidio to identify and remove IP addresses, and I ran into the following issue. It was recognizing
'::'
as a string containing an IP address, and'2345:0425:2CA1:0000:0000:0567:5673:23b5'
was not being recognized as an IP address. I ran a couple of tests as follows:Output:
This made it seem like it is just identifying an IPV6 address as any element that contains two consecutive colons. I then checked the source code, and found this in the tests:
presidio/presidio-analyzer/tests/test_ip_recognizer.py
Line 24 in 4777d17
Can the IPv6 regex be fixed?
The text was updated successfully, but these errors were encountered: