1
0
mirror of https://github.com/demodude4u/Factorio-FBSR.git synced 2025-02-19 19:59:54 +02:00

Fixed error that happened when someone used raw pastebin/hastebin links

This commit is contained in:
Weston Rye (Demod) 2017-08-03 14:34:40 -04:00
parent 5de09dfc5a
commit 849ef5f551

View File

@ -61,9 +61,9 @@ public final class BlueprintFinder {
}
private enum Providers implements Provider {
PASTEBIN("pastebin\\.com/(?<id>[A-Za-z0-9]+)", m -> "https://pastebin.com/raw/" + m.group("id")), //
PASTEBIN("pastebin\\.com/(?<id>[A-Za-z0-9]{4,})", m -> "https://pastebin.com/raw/" + m.group("id")), //
HASTEBIN("hastebin\\.com/(?<id>[A-Za-z0-9]+)", m -> "https://hastebin.com/raw/" + m.group("id")), //
HASTEBIN("hastebin\\.com/(?<id>[A-Za-z0-9]{4,})", m -> "https://hastebin.com/raw/" + m.group("id")), //
GITLAB("gitlab\\.com/snippets/(?<id>[A-Za-z0-9]+)",
m -> "https://gitlab.com/snippets/" + m.group("id") + "/raw"), //