[문자열 덧셈 계산기] 김정은 미션 제출합니다.#210
Open
Jeong-Ag wants to merge 9 commits intowoowacourse-precourse:mainfrom
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
입력한 문자열에서 구분자를 기준으로 숫자를 추출하여 덧셈을 수행합니다.