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

refactor(cutText): improve algorithm #820

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Oct 27, 2024

No description provided.

@favna favna force-pushed the refactor/cut-text/improve-algorithm branch from 23210ee to 0ffbc25 Compare October 27, 2024 12:31
@@ -1,4 +1,4 @@
import { splitText } from './splitText';
const WordSeparatorCharacter = /[\p{Separator}\p{Punctuation}\p{Control}]/u;
Copy link
Member

Choose a reason for hiding this comment

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

What is the minimum Node version for \p and u flag in Regex? sapphire utilities targets Node >= 14.0.0 through the engines field.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

sonarcloud bot commented Oct 27, 2024

@favna favna merged commit db34661 into main Oct 27, 2024
10 checks passed
@favna favna deleted the refactor/cut-text/improve-algorithm branch October 27, 2024 14:45
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