Skip to content

Commit

Permalink
✨ Feat: 이메일과 비밀번호 정규 표현식 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Nov 9, 2023
1 parent 4c1da1f commit 098da5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/constants/regexPattern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const regexPatterns = {
email: /^[a-zA-Z0-9+-\_.]+@[a-zA-Z0-9-]+\.[a-zAZ0-9-.]+$/,
password: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{6,}$/,
};

export default regexPatterns;

0 comments on commit 098da5f

Please sign in to comment.