Skip to content

Commit

Permalink
[Fix] RegionParser.java 업데이트
Browse files Browse the repository at this point in the history
- 형식 제한 대신 길이 3 이하 길이일경우 예외 처리하는 방향으로 변경
  • Loading branch information
Yeon-chae authored Jun 5, 2024
1 parent abaf8b9 commit c85b9de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class RegionParser {
public static Region parseRegion(String address) {
String[] parts = address.split(" ");

if (parts.length != 3) {
if (parts.length < 3) {
throw new IllegalArgumentException("Address must be in the format 'City County District'");
}

Expand Down

0 comments on commit c85b9de

Please sign in to comment.