toss / es-hangul

A modern JavaScript library for handling Hangul characters.
https://es-hangul.slash.page/
MIT License
1.34k stars 95 forks source link

feat: removeLastHangulCharacter 추가 #56

Closed evan-moon closed 6 months ago

evan-moon commented 6 months ago

Overview

인자로 받은 한글 문자열에서 마지막 한글 문자 하나를 제거하여 반환하는 removeLastHangulCharacter 함수를 추가합니다.

removeLastHangulCharacter('안녕하세요 값') // '안녕하세요 갑'
removeLastHangulCharacter('프론트엔드') // '프론트엔ㄷ'
removeLastHangulCharacter('일요일') // '일요이'

이 함수는 개별적으로 사용되기도 하겠지만, https://github.com/toss/es-hangul/issues/18 에서 제안된 assemble 함수의 연음법칙을 구현할 때도 사용됩니다.

PR Checklist

  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 12ce776a5d3f65d89af0f6ff48dd24b4287c9803

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

netlify[bot] commented 6 months ago

Deploy Preview for es-hangul ready!

Name Link
Latest commit 12ce776a5d3f65d89af0f6ff48dd24b4287c9803
Latest deploy log https://app.netlify.com/sites/es-hangul/deploys/6620b2dd5aa1d60008fca145
Deploy Preview https://deploy-preview-56--es-hangul.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.