Open qgustavor opened 1 year ago
It currently uses a regex: https://github.com/SecUSo/privacy-friendly-qr-scanner/blob/cbbf609c9a4bedf0f58e0ceb5616d002cbb59bfa/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/resultfragments/URLResultFragment.java#L60 Because of that it highlights wrongly a lot of domains not in the regex. Using the public suffix list is probably the best way to handle those cases: https://publicsuffix.org/
It currently uses a regex: https://github.com/SecUSo/privacy-friendly-qr-scanner/blob/cbbf609c9a4bedf0f58e0ceb5616d002cbb59bfa/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/resultfragments/URLResultFragment.java#L60 Because of that it highlights wrongly a lot of domains not in the regex. Using the public suffix list is probably the best way to handle those cases: https://publicsuffix.org/