1
0
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:
Weston Rye (Demod) 2017-06-06 23:48:26 -04:00
parent 00ca8ee5ca
commit 76e8ce0b96

View File

@ -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")) {