Skip to content

Conversation

@chosanghyeon-dev
Copy link

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
Copy link

vercel bot commented Nov 24, 2025

@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 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