Skip to content

refactor: extract sanitisation part for improved readability - #1061

Merged
bengbengbalabalabeng merged 3 commits into
apache:mainfrom
nkuprins:refactor/extract-sanitize
Sep 2, 2026
Merged

refactor: extract sanitisation part for improved readability#1061
bengbengbalabalabeng merged 3 commits into
apache:mainfrom
nkuprins:refactor/extract-sanitize

Conversation

@nkuprins

Copy link
Copy Markdown
Contributor

Purpose of the pull request

This separates string cleanup from date format validation to improve readability.

What's changed?

Small extractions, no behaviour change.

  • Extract sanitisation logic into sanitizeString and isEscapableChar helper methods

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

@bengbengbalabalabeng bengbengbalabalabeng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@bengbengbalabalabeng
bengbengbalabalabeng merged commit b8adc73 into apache:main Sep 2, 2026
9 checks passed
@nkuprins
nkuprins deleted the refactor/extract-sanitize branch September 2, 2026 11:21
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