New nodes: 'Regex Contains', 'Regex Replace', 'Regex Find', 'Regex Find All', and 'Regex Split'#4045
Merged
New nodes: 'Regex Contains', 'Regex Replace', 'Regex Find', 'Regex Find All', and 'Regex Split'#4045
Conversation
Contributor
There was a problem hiding this comment.
2 issues found across 8 files
Confidence score: 4/5
- This PR looks safe to merge overall: both reported issues are mid-severity (5/10) and appear to be consistency/process concerns rather than clear runtime breakage.
- The most user-impacting item is in
node-graph/nodes/text/src/regex.rs, whereregex_findhas an empty node category; this can reduce discoverability by keeping it from appearing alongside other regex nodes. - The note in
editor/src/messages/portfolio/document/node_graph/document_node_definitions.rsis a PR-title format enforcement issue (New node(s): ...), which is important for workflow consistency but is not likely to affect product behavior. - Pay close attention to
node-graph/nodes/text/src/regex.rsandeditor/src/messages/portfolio/document/node_graph/document_node_definitions.rs- node categorization consistency and required title-format compliance should be corrected.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs">
<violation number="1" location="editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs:1493">
P2: Custom agent: **PR title enforcement**
PR title for a node-adding change does not use the required dedicated "New node(s): ..." format.</violation>
</file>
<file name="node-graph/nodes/text/src/regex.rs">
<violation number="1" location="node-graph/nodes/text/src/regex.rs:82">
P2: `regex_find` is registered with an empty node category, which can prevent it from appearing with the other regex nodes and makes it inconsistent with the rest of this feature.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new suite of regex-based nodes for the node graph system, including regex_contains, regex_replace, regex_find, regex_find_all, and regex_split, alongside utility traits for index manipulation. The review identified several high-severity type mismatch issues in the node definitions where f64 was incorrectly used instead of i64 for index inputs, as well as medium-severity concerns regarding safe integer handling and logging consistency in the new regex implementation.
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.
Category - Text: Regex
$0,$1, etc.).Broken out from #4010.