Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

fix(@toss/validators): Reject 010 numbers that don’t have exactly 8 digits after the prefix - #529

Open
chosanghyeon-dev wants to merge 1 commit into
toss:mainfrom
chosanghyeon-dev:fix-mobile-phone-validator
Open

fix(@toss/validators): Reject 010 numbers that don’t have exactly 8 digits after the prefix#529
chosanghyeon-dev wants to merge 1 commit into
toss:mainfrom
chosanghyeon-dev:fix-mobile-phone-validator

Conversation

@chosanghyeon-dev

Copy link
Copy Markdown

Overview

  • The previous KR mobile phone validator didn’t strictly check the length of the digits following 010, causing numbers like 0101234123 to be incorrectly treated as valid.
  • Updated the regex so that 010 numbers are valid only when they contain exactly 8 digits after the prefix (i.e., total length of 11 digits).
  • Added 0101234123 as a failing test case to reproduce the issue and verify the fix.

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

@vercel

vercel Bot commented Nov 24, 2025

Copy link
Copy Markdown

@chosanghyeon-dev is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@chosanghyeon-dev chosanghyeon-dev changed the title fix[common/validators]: Reject 010 numbers that don’t have exactly 8 digits after the prefix fix(@common/validators): Reject 010 numbers that don’t have exactly 8 digits after the prefix Nov 24, 2025
@chosanghyeon-dev chosanghyeon-dev changed the title fix(@common/validators): Reject 010 numbers that don’t have exactly 8 digits after the prefix fix(@toss/validators): Reject 010 numbers that don’t have exactly 8 digits after the prefix Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant