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 symbol replacer for new lines #56

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

IlievaDayana
Copy link
Contributor

No description provided.

@IlievaDayana IlievaDayana self-assigned this Mar 18, 2024
@IlievaDayana IlievaDayana force-pushed the Adding-new-lines-functionality branch from 260f401 to 1f6e808 Compare March 19, 2024 07:12
@IlievaDayana IlievaDayana requested a review from venzovisa March 19, 2024 07:15

export const splitIntoRowChunks = (text: string): string[] => {
return text.replaceAll(/\\r\\n|\\n|\r\n|<br>|<br\/>/g, '\n').split('\n');
};
Copy link
Contributor

Choose a reason for hiding this comment

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

@IlievaDayana You could add some test for this function as well splitIntoRowChunks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is, it is just a feature test that is testing both visually and by calling this function and asserting that the states are equal

@IlievaDayana IlievaDayana force-pushed the Adding-new-lines-functionality branch 4 times, most recently from 09d203e to a530037 Compare March 26, 2024 15:31
@IlievaDayana IlievaDayana force-pushed the Adding-new-lines-functionality branch from a530037 to 3ae1082 Compare March 27, 2024 15:07
@IlievaDayana IlievaDayana merged commit 4ba9d91 into master Mar 29, 2024
1 check passed
@IlievaDayana IlievaDayana deleted the Adding-new-lines-functionality branch March 29, 2024 12:41
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