s-rah / onionscan

OnionScan is a free and open source tool for investigating the Dark Web.
https://twitter.com/OnionScan
Other
2.89k stars 599 forks source link

Update validation.go #173

Open lovegreen1321 opened 3 years ago

lovegreen1321 commented 3 years ago

Changed

Weldeasy commented 2 years ago

Merge this bad boy!

mikelolasagasti commented 2 years ago

This breaks a test, as the new regexp accepts anything between 16 and 56:

https://github.com/s-rah/onionscan/blob/master/utils/validation_test.go#L29=

I think (^|\.)[a-z2-7]{16}\.onion$|(^|\.)[a-z2-7]{56}\.onion$ would be more correct, as matches either 16 or 56 length domain names.

VityaSchel commented 2 years ago

@s-rah