Skip to content

Commit

Permalink
[refac] Extend custom endpoint length to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
eomiso authored and kyungwon-lee committed Oct 16, 2023
1 parent e2aecf4 commit 566a612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/zaikorea/zaiclient/ZaiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ public Builder readTimeout(int seconds) {
}

public Builder customEndpoint(String endpoint) throws InvalidParameterException {
if (endpoint.length() > 10)
throw new InvalidParameterException("Custom endpoint should be less than or equal to 10.");
if (endpoint.length() > 100)
throw new InvalidParameterException("Custom endpoint should be less than or equal to 100.");

if (Pattern.matches("^[a-zA-Z0-9-]+$", endpoint)) {
this.eventsApiEndpoint = String.format(Config.eventsApiEndPoint, "-"+endpoint);
Expand Down

0 comments on commit 566a612

Please sign in to comment.