Skip to content

Commit

Permalink
Merge pull request #1034 from peternied/optmize-invalid-response-regex
Browse files Browse the repository at this point in the history
Optimize the regex parser for InvalidResponse
  • Loading branch information
peternied authored Sep 30, 2024
2 parents d5f5be6 + 39e67ae commit f28e131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@Slf4j
public class InvalidResponse extends RfsException {
private static final Pattern UNKNOWN_SETTING = Pattern.compile("unknown setting \\[(.+?)\\].+");
private static final Pattern UNKNOWN_SETTING = Pattern.compile("unknown setting \\[([a-zA-Z0-9_.-]+)\\].+");
private static final ObjectMapper objectMapper = new ObjectMapper();
private final transient HttpResponse response;

Expand Down

0 comments on commit f28e131

Please sign in to comment.