관리자 통계 제외와 콘텐츠 링크 정리
This commit is contained in:
@@ -405,10 +405,10 @@ const toSlug = (value) => value
|
||||
.join('')
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9\s-]/g, '')
|
||||
.replace(/[^a-z0-9\s_-]/g, '')
|
||||
.replace(/\s+/g, '-')
|
||||
.replace(/-+/g, '-')
|
||||
.replace(/^-|-$/g, '')
|
||||
.replace(/[-_]+/g, (match) => match.includes('_') ? '_' : '-')
|
||||
.replace(/^[-_]|[-_]$/g, '')
|
||||
|
||||
/**
|
||||
* 게시물 태그 입력 토큰 정규화(한글 유지, 공백은 하이픈으로)
|
||||
|
||||
Reference in New Issue
Block a user