Skip to content

fix: replacements splitted between chunks W-20635868#1699

Open
Bartheleway wants to merge 1 commit intoforcedotcom:mainfrom
Bartheleway:bartheleway/fix-string-replacements
Open

fix: replacements splitted between chunks W-20635868#1699
Bartheleway wants to merge 1 commit intoforcedotcom:mainfrom
Bartheleway:bartheleway/fix-string-replacements

Conversation

@Bartheleway
Copy link
Contributor

What does this PR do?

When using replacement strings on big files, it happen a replacement string is split in two different chunks thus not being replaced.

The modification consider treating only complete lines as replacement string should not be split on several lines. Remaining characters are added to the next chunk in order to be processed as well.

What issues does this PR fix or reference?

forcedotcom/cli#3461, @W-20635868@

Functionality Before

Replacement process miss some tokens.

Functionality After

All tokens are correctly replaced.
Tested locally on the file I had issue with and it solved it without causing other impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant