Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rewrite the injector to take into account multiple injections #3

Merged
merged 18 commits into from
May 22, 2022

Conversation

danielloader
Copy link
Owner

Previous iteration greedy calculated the indexes of the anchors, but as you can imagine once you change the first anchor, the indexes are likely to be misaligned due to the chance of the number of lines being replaced being different to the original document.

This iteration has some unit tests to check for this behaviour and a new injector system to lazy calculate indexes on access/assignment.

@danielloader danielloader linked an issue May 21, 2022 that may be closed by this pull request
@danielloader danielloader merged commit a25f199 into main May 22, 2022
@danielloader danielloader deleted the rewrite-injector branch May 24, 2022 08:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve documentation around document injection
1 participant