Skip to content

feat: Add checkBase64 util function#27

Merged
klmhyeonwoo merged 2 commits intomainfrom
feature/util-workspace
Sep 1, 2025
Merged

feat: Add checkBase64 util function#27
klmhyeonwoo merged 2 commits intomainfrom
feature/util-workspace

Conversation

@klmhyeonwoo
Copy link
Copy Markdown
Member

@klmhyeonwoo klmhyeonwoo commented Sep 1, 2025

Description

  • Base64 문자열이 들어왔는지 확인하는 검증 유틸 함수를 추가했어요

closes: #17

Copilot AI review requested due to automatic review settings September 1, 2025 12:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a utility function to validate Base64 encoded strings, expanding the validation utilities available in the package.

  • Implements checkBase64 function with regex-based validation
  • Adds comprehensive test coverage for valid and invalid Base64 strings
  • Updates package exports and documentation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
package/validationUtil/index.ts Exports the new checkBase64 function
package/validationUtil/checkBase64/index.ts Implements Base64 validation using regex pattern
package/validationUtil/checkBase64/index.test.ts Provides test cases for valid and invalid Base64 strings
README.md Documents the new checkBase64 function with usage example

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread package/validationUtil/checkBase64/index.ts
@klmhyeonwoo
Copy link
Copy Markdown
Member Author

klmhyeonwoo commented Sep 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 63.57% 96 / 151
🔵 Statements 63.57% 96 / 151
🔵 Functions 93.75% 15 / 16
🔵 Branches 96.07% 49 / 51
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
package/validationUtil/checkBase64/index.ts 100% 100% 100% 100%
Generated in workflow #42 for commit adfb5ab by the Vitest Coverage Report Action

@klmhyeonwoo klmhyeonwoo requested a review from prgmr99 September 1, 2025 12:35
Copy link
Copy Markdown
Member

@prgmr99 prgmr99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~~~👍

@klmhyeonwoo klmhyeonwoo merged commit fcdcb18 into main Sep 1, 2025
1 check passed
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.

validationUtil > checkBase64()

3 participants