Skip to content

Enhanced error messaging and validation for --region argument#15

Merged
tombch merged 2 commits intodevelopmentfrom
region-validation
Aug 28, 2025
Merged

Enhanced error messaging and validation for --region argument#15
tombch merged 2 commits intodevelopmentfrom
region-validation

Conversation

@tombch
Copy link
Owner

@tombch tombch commented Aug 28, 2025

  • Added regex crate dependency.
  • Added MapTideError::Error(<string>) enum option for custom error messages.
  • Added validate_region function that checks a region string conforms to the expected formats: CHROM, CHROM:START and CHROM:START-END.

@tombch tombch changed the title Enhanced error messaging and validation for --region argument Enhance error messaging and validation for --region argument Aug 28, 2025
@tombch tombch changed the title Enhance error messaging and validation for --region argument Enhanced error messaging and validation for --region argument Aug 28, 2025
Copy link
Owner Author

@tombch tombch left a comment

Choose a reason for hiding this comment

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

👍

@tombch tombch merged commit b64fd47 into development Aug 28, 2025
20 checks passed
@tombch tombch deleted the region-validation branch August 28, 2025 13: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.

1 participant