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

Fix newline regex #443

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Fix newline regex #443

merged 1 commit into from
Jan 29, 2025

Conversation

vcarl
Copy link
Member

@vcarl vcarl commented Jan 29, 2025

No description provided.

Copy link

what-the-diff bot commented Jan 29, 2025

PR Summary

  • Refactored Naming for Clarity
    The regex constant previously named DOUBLE_NEWLINE has been renamed to TOO_MANY_NEWLINES for more intuitive understanding.

  • Introduced a New Constant
    A new constant named APPROPRIATE_NEWLINES has been introduced to represent the string "\n\n", providing consistency across the codebase.

  • Improved Text Formatting Function
    Adjustments were made to the compressLineBreaks function. It now replaces instances of three or more consecutive line breaks with just two, instead of replacing two consecutive line breaks with one, offering better text formatting.

@vcarl vcarl merged commit 2569d6c into main Jan 29, 2025
2 checks passed
@vcarl vcarl deleted the vc-jobs-api-formatting branch January 29, 2025 00:28
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.

1 participant