mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2024-11-24 08:12:21 +02:00
"file://..." is probably bad to include in the valid urls...
This commit is contained in:
parent
00ca8ee5ca
commit
76e8ce0b96
@ -36,7 +36,7 @@ public final class BlueprintFinder {
|
||||
});
|
||||
}), //
|
||||
|
||||
TEXT_URLS("\\b(?<url>(?:https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|])", (m, l) -> {
|
||||
TEXT_URLS("\\b(?<url>(?:https?|ftp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|])", (m, l) -> {
|
||||
URL url = new URL(m.group("url"));
|
||||
URLConnection connection = url.openConnection();
|
||||
if (connection.getContentType().startsWith("text/plain")) {
|
||||
|
Loading…
Reference in New Issue
Block a user