Update @gruhn/regex-utils to 2.9.1 and adapt to new AST format#242
Closed
Update @gruhn/regex-utils to 2.9.1 and adapt to new AST format#242
Conversation
Co-authored-by: futpib <4330357+futpib@users.noreply.github.com>
- Convert new 'assertion' type to old 'lookahead' type in tests - Update alphabet range from 0x10FFFF to 0xFFFF to match library default - Add conversion functions for RegExpAST and CharSet types Co-authored-by: futpib <4330357+futpib@users.noreply.github.com>
Use proper LibCharSet type instead of any Co-authored-by: futpib <4330357+futpib@users.noreply.github.com>
- Add JSDoc comments to conversion functions - Remove unnecessary fallback case in convertCharSet - Document AST node types and conversion purpose Co-authored-by: futpib <4330357+futpib@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update @gruhn/regex-utils to version 2.9.1 and adapt to new AST format
Update @gruhn/regex-utils to 2.9.1 and adapt to new AST format
Feb 16, 2026
Pull Request Test Coverage Report for Build 22047353374Details
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
@gruhn/regex-utilsfrom 2.7.3 to 2.9.1. The new version changes lookahead representation in the AST:Old format:
New format:
Changes
convertFromRegExpAST()to map new assertion format to internal lookahead representation in test comparisons0x10FFFFto0xFFFFto match library's default BMP mode (non-unicode flag behavior)LibCharSettype instead of usinganyfor charset conversionThe internal parser implementation remains unchanged - only test utilities needed updates to handle the new library format.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.