You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parseMessage function is currently removing all trailing period characters (.) from the input message. This behavior is problematic because if a message is meant to end with a period, it's being incorrectly stripped, leading to an unintended alteration of the message.
Messages that end with a single period should retain this period upon completion of the asynchronous process. Only the periods added for loading indicators should be removed without affecting the original message content.
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
The parseMessage function is currently removing all trailing period characters (
.
) from the input message. This behavior is problematic because if a message is meant to end with a period, it's being incorrectly stripped, leading to an unintended alteration of the message.To Reproduce
https://stackblitz.com/edit/node-v6ivn9er?file=index.js
Steps to reproduce the behavior:
npm run start
.Expected behavior
Messages that end with a single period should retain this period upon completion of the asynchronous process. Only the periods added for loading indicators should be removed without affecting the original message content.
The text was updated successfully, but these errors were encountered: