Closed FikriMilano closed 3 months ago
Attention: Patch coverage is 88.37209%
with 10 lines
in your changes missing coverage. Please review.
Project coverage is 28.4%. Comparing base (
ac82739
) to head (269af5a
). Report is 82 commits behind head on main.
This implementation could be refactored for some optimization e.g. use one while loop with if else statements for the various conditions during parsing or using regex for the various parse/replace logic.
The performance gains are probably negligible for the size of HTML we are parsing so will go ahead and approve this. We can keep a look out and perform any refactors accordingly incase latency is noticable.
cc @FikriMilano
@pld @ndegwamartin Thanks for the review, I'll do some R&D before finalizing the improvement
@pld @ndegwamartin there's a higher priority in building the HTML templates and working on pending engage tickets.
So, will get back to this PR later.
@pld here's a use case where we should not increment i
<p>@is-not-empty('link')Text@is-not-empty('link')</p>
So, this is why we should not increment i after processing a tag.
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #3257
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file