Skip to content

Commit

Permalink
Fix lsky uploader config delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Jan 12, 2024
1 parent e96d7c3 commit 879e7fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public class LskyUploader extends ImageUploader {
private final String token;

public LskyUploader(ImageUploadConfig config) {
String[] configParts = config.config.split(":", 2);
String[] configParts = config.config.split("\\?", 2);
if (configParts.length == 2) {
apiUrl = configParts[0];
token = configParts[1];
apiUrl = configParts[0].trim();
token = configParts[1].trim();
} else {
throw new RuntimeException("Invalid LskyUploader config: " + config.config);
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
org.gradle.jvmargs=-Xmx4G

# Mod Properties
mod_version=0.1.1
mod_version=0.1.2
maven_group=worldcomment

0 comments on commit 879e7fc

Please sign in to comment.