Skip to content

Commit

Permalink
feat(lexer): improve validation and error handling
Browse files Browse the repository at this point in the history
- Add validation for escape sequences using isValidEscapeSequence
- Add checks for empty character classes and groups
- Improve error messages for invalid quantifier modifiers
- Add validation for character range order in character classes
- Add validation for empty quantifiers and invalid ranges
- Prevent quantifiers starting with comma
- Implement validation for double modifiers (lazy/possessive)
- Add explicit handling of reserved regex symbols
- Add validation for unmatched closing brackets
  • Loading branch information
Demali-876 committed Nov 12, 2024
1 parent 469bceb commit 883a409
Showing 1 changed file with 232 additions and 146 deletions.
Loading

0 comments on commit 883a409

Please sign in to comment.