-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: add function replace_between_positions #406
feat: add function replace_between_positions #406
Conversation
internal/primitive/transform/action/strings/replace_between_positions.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions.go
Outdated
Show resolved
Hide resolved
I've updated the code @xdlbdy thanks to you. |
Do I have to sign the CLA assistant also? |
hi @c0d33ngr Yeah, please sign the CLA assistant |
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
I've made updates to the code |
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
I've updated the code |
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Outdated
Show resolved
Hide resolved
internal/primitive/transform/action/strings/replace_between_positions_test.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just saw a test earlier before you merging it about mismatch type from checks provided |
* implement the function replace_between_positions * Update code to be more robust with checks and test cases * fix errors in code * fix tests in replace-between-positions * Fix bug * fix: fix code error
What problem does this PR solve?
Issue Number: close #376
Problem Summary
This problem solve the issue of finding a sub-string by specifying the starting position and the ending position of an existed json element, and then replace it with a specific new string.
What is changed and how does it work?
Check List
Tests