Conversation
Member
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
klmhyeonwoo
reviewed
Oct 31, 2025
| expect(output).toBe("hello-world-this-is-a-test"); | ||
| }); | ||
|
|
||
| test("특수 문자가 포함된 문자열을 올바르게 변환한다.", () => { |
Member
There was a problem hiding this comment.
이 테스트 케이스도 궁금할 것 같은데 추가가 가능하실까요?!
test("slug 형태의 문자열은 그대로 slug 형태로 반환한다.", () => {
const input = "Hello-World";
const output = slugify(input);
expect(output).toBe("hello-world");
});
klmhyeonwoo
approved these changes
Oct 31, 2025
Member
klmhyeonwoo
left a comment
There was a problem hiding this comment.
고생하셨습니다! URL에 잘 쓰일 것 같은 유틸리티네요!
저는 지금 유용한 유틸함수가 왠만하면 거의 다 들어가서 조금 생각을 해봐야할 것 같아요!
그래서 이번 PR 머지 후 릴리즈 부탁드려도 될까요!
Member
Author
넵!! 알겠습니다 ^^7 |
Member
맞지요 맞지요 lodash를 이기는 그날까지,, |
edfcbd0 to
88bbd3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
URL 친화적인 문자열 변환을 위한
slugify함수를 추가했습니다.블로그 포스트 URL, 파일명 생성, SEO 친화적 링크 생성 등에 활용할 수 있으며,
한글을 포함한 다국어 문자열을 안전하게 처리합니다.
새로운 기능
stringUtil.slugify()함수 추가slug형태로 변환구현방식