일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- notFound()
- RTK Query
- Next13
- hook
- getUTCDate
- background: url
- context
- CSS
- codingtest
- React 18
- background tab
- Nextjs
- react-helmet
- React 18 Nextjs
- React 공식문서
- Programmers
- background setttimeout
- React 고급 안내서
- Nextjs React 18
- react
- next13 head
- 고급안내서
- Javascript
- react hook
- React API 참고서
- background setInterval
- Render Props
- Babel
- React 고급안내서
- React18
Archives
- Today
- Total
목록신규 아이디 추천 (1)
akjfal
[Programmers] 신규 아이디 추천
// upper -> lower // regex a-z, 0-9, -, _, . // replace .. . // charAt(0), charAt(-1) . 제거 // 빈문자열 -> a // len > 16 -> sub(0, 15) -> 마침표 다시 체크 // len 15){ new_id = new_id.substring(0, 15); new_id = trimDot(new_id); } if(new_id.length < 3){ while(new_id.length < 3){ new_id += new_id.charAt(new_id.length-1); } } return new_id; } function trimDot(new_id){ let length = new_id.length; if(new_id.charA..
알고리즘/programmers
2021. 7. 3. 18:49