-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(core): support regular expressions in templates #63887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
Updates the expression lexer to produce tokens for regular expression literals.
Updates the template syntax to support inline regular expressions.
Adds the `RegularExpressionLiteral` node to the output AST.
…mpiler Handles regular expression literals across the template type checker and the various translators.
Adds support for regular expression literals in the template pipeline and adds some logic to optimize non-global ones.
Updates the docs to mention that regular expressions are supported.
c5384bd to
b634d15
Compare
Member
Author
devversion
approved these changes
Sep 18, 2025
thePunderWoman
pushed a commit
that referenced
this pull request
Sep 18, 2025
Updates the template syntax to support inline regular expressions. PR Close #63887
thePunderWoman
pushed a commit
that referenced
this pull request
Sep 18, 2025
Adds the `RegularExpressionLiteral` node to the output AST. PR Close #63887
Contributor
|
This PR was merged into the repository. The changes were merged into the following branches:
|
thePunderWoman
pushed a commit
that referenced
this pull request
Sep 18, 2025
Updates the docs to mention that regular expressions are supported. PR Close #63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
Updates the expression lexer to produce tokens for regular expression literals. PR Close angular#63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
Updates the template syntax to support inline regular expressions. PR Close angular#63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
…lar#63887) Adds the `RegularExpressionLiteral` node to the output AST. PR Close angular#63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
…mpiler (angular#63887) Handles regular expression literals across the template type checker and the various translators. PR Close angular#63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
…ne (angular#63887) Adds support for regular expression literals in the template pipeline and adds some logic to optimize non-global ones. PR Close angular#63887
wildcardalice
pushed a commit
to wildcardalice/angular
that referenced
this pull request
Sep 18, 2025
…#63887) Updates the docs to mention that regular expressions are supported. PR Close angular#63887
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
action: merge
The PR is ready for merge by the caretaker
area: compiler
Issues related to `ngc`, Angular's template compiler
area: core
Issues related to the framework runtime
area: docs
Related to the documentation
detected: feature
PR contains a feature commit
target: major
This PR is targeted for the next major release
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.
This is a second attempt at #63857 with some fixes to avoid the breakages.
Updates the template syntax to support inline regular expressions. Also includes some logic to reuse regular expressions between call sites, unless they're marked as global.