feat: Add http url check util function to validationUtil #6
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.
Description
validationUtilcheckHttpUrl유틸함수를 추가합니다.http또는https로 시작하는지 정규식으로 빠르게 1차 검사합니다.new URL())를 사용하여 URL 유효성을 검증합니다.테스트 케이스
일반적인 http/https 주소, 서브도메인, 포트 번호, 쿼리 파라미터 등을 포함하여 검증합니다.
프로토콜이 없는 경우, 상대 경로, ftp/mailto 등 다른 프로토콜, 공백 포함, 빈 문자열 등 다양한 엣지 케이스를 검증합니다.