Skip to content

Conversation

dogabudak
Copy link

Replace panic with graceful error handling when an invalid regex delimiter is provided. Instead of crashing the application, now:

  • Shows a clear warning message to the user
  • Falls back to the default delimiter pattern [\t\n ]+
  • Allows the application to continue running normally

This prevents crashes from invalid user input while maintaining functionality and providing helpful feedback.

Fixes potential crashes when users provide malformed regex patterns as delimiters through command-line options.

Replace panic with graceful error handling when an invalid regex
delimiter is provided. Instead of crashing the application, now:

- Shows a clear warning message to the user
- Falls back to the default delimiter pattern `[\t\n ]+`
- Allows the application to continue running normally

This prevents crashes from invalid user input while maintaining
functionality and providing helpful feedback.

Fixes potential crashes when users provide malformed regex patterns
as delimiters through command-line options.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dogabudak dogabudak changed the title Improve error handling for invalid regex delimiter chore: Improve error handling for invalid regex delimiter Sep 2, 2025
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