1
0
mirror of https://github.com/demodude4u/Factorio-FBSR.git synced 2024-11-24 08:12:21 +02:00

Added dropbox support, kinda, for one use case at least

This commit is contained in:
Weston Rye (Demod) 2017-06-08 16:40:05 -04:00
parent daa7c2fb2f
commit 360986bf0a

View File

@ -36,6 +36,8 @@ public final class BlueprintFinder {
});
}), //
DROPBOX("\\b(?<url>https://www\\.dropbox\\.com/s/[^\\s?]+)", m -> m.group("url") + "?raw=1"), //
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();