Skip to content

Commit a688efa

Browse files
committed
fix: 쿠키 파싱 시 맨 처음 발견된 =만 split하도록 수정
1 parent fd20333 commit a688efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/pyconkr-common/utils/cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const getCookie = (name: string) => {
77
let cookieValue: string | undefined
88
document.cookie.split(';').forEach((cookie) => {
99
if (R.isEmpty(cookie) || !cookie.includes('=')) return
10-
const [key, value] = cookie.split('=')
10+
const [key, value] = cookie.split('=', 2)
1111
if (key.trim() === name) cookieValue = decodeURIComponent(value) as string
1212
})
1313
return cookieValue

0 commit comments

Comments
 (0)