Skip to content

[문자열 덧셈 계산기] 김정은 미션 제출합니다.#210

Open
Jeong-Ag wants to merge 9 commits intowoowacourse-precourse:mainfrom
Jeong-Ag:Jeong-Ag
Open

[문자열 덧셈 계산기] 김정은 미션 제출합니다.#210
Jeong-Ag wants to merge 9 commits intowoowacourse-precourse:mainfrom
Jeong-Ag:Jeong-Ag

Conversation

@Jeong-Ag
Copy link
Copy Markdown

입력한 문자열에서 구분자를 기준으로 숫자를 추출하여 덧셈을 수행합니다.

  1. 문자열 입력 받기
  2. 입력받은 문자열에서 구분자와 숫자 문자열 추출
  3. 숫자 문자열을 구분자를 기준으로 분리한 후 값 검증
  4. 덧셈 수행 후 결과 출력

Separate delimiters and the number string from the input:
- Add the primary input parsing function
- Validate for the presence of a custom separator
- Extract the custom separator when detected.
Separate the number input based on defined separators and validates the resulting value:
- Add `splitBySeparator` function to split the input using multiple separators via a generated regular expression.
- Introduce the `toPositiveNumber` utility to validate and convert string tokens.
- Ensure validation throws an error if input contains non-numeric characters or negative numbers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant