Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ascii-to-emoji replacer #194

Merged
merged 6 commits into from
Jan 15, 2025
Merged

Add ascii-to-emoji replacer #194

merged 6 commits into from
Jan 15, 2025

Conversation

nnsense91
Copy link
Collaborator

@nnsense91 nnsense91 commented Jan 14, 2025

  • Add replacer function
  • Add unit-tests flow
  • Add ci-tests stage
  • Add to storybook
  • Bump CI node version to 20

@nnsense91 nnsense91 self-assigned this Jan 15, 2025
@nnsense91 nnsense91 requested a review from elenik72 January 15, 2025 07:12
* @returns {string} text with replacements
*/
export const asciiToEmoji = (inputString, options = {}) => {
if (typeof inputString !== "string") throw Error("inputString must be a string!")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут можно было бы возвращать неизмененный текст, но мне показалось это логичнее обрабатывать в каком-нибудь try/catch на месте.

@nnsense91 nnsense91 merged commit 0647066 into master Jan 15, 2025
4 checks passed
@nnsense91 nnsense91 deleted the ascii_to_emoji_replacer branch January 15, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants