ACK-J / Port_Authority

Blocks websites from using javascript to port scan your computer/network and dynamically blocks all LexisNexis endpoints from running their invasive data collection scripts.
GNU General Public License v2.0
129 stars 10 forks source link

Update regex in background.js #9

Closed Dorsalus closed 3 years ago

Dorsalus commented 3 years ago

Changed regex to match IPv6 enclosed in square brackets, only looks for opening bracket. Current match is optional so both formats; [fc03:49bd:b7c1:5685::2] and fc03:49bd:b7c1:5685::2, are postively matched.

ACK-J commented 3 years ago

Hey question. Is there any reason there is an open bracket but no closed bracket in the last group of the regex? \[?[fF][eE][89aAbB][0-9a-fA-F](?:[:][0-9a-fA-F]{0,4}){0,7})

image

ACK-J commented 3 years ago

Modifications and changes made in v. 1.0.19 https://github.com/ACK-J/Port_Authority/commit/7af3a737b4abedadb1bbaa0b88ed07d675b15d95

Dorsalus commented 3 years ago

I was getting some strange behaviour with the closing bracket for some reason but looks like you've fixed it.

Dorsalus commented 3 years ago

Thanks for the partial credit btw, it's appreciated.

ACK-J commented 3 years ago

Thanks for the help!