Skip to content
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

api: Merge style of full match when replaced #421

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

kezz
Copy link
Member

@kezz kezz commented Aug 6, 2021

This PR fixes #387.

When a full match has been found, the replacement is collected and then the style of the original match is merged into this style using the IF_ABSENT_ON_TARGET strategy. This will replicate the behaviour of when a partial match is found as the style will inherit from the parent.

@kashike kashike self-assigned this Aug 6, 2021
@kashike kashike added this to the 4.9.0 milestone Aug 6, 2021
@kashike kashike merged commit 1ab9748 into KyoriPowered:master Aug 6, 2021
@kezz kezz deleted the fix/loss-of-style-on-full-match branch August 6, 2021 19:00
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.

Loss of style when replacing full match text
2 participants