mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2024-11-27 08:20:57 +02:00
Added dropbox support, kinda, for one use case at least
This commit is contained in:
parent
daa7c2fb2f
commit
360986bf0a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user