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

fix: greedy match may cause unwanted replacement #58960

Closed
wants to merge 1 commit into from

Commits on Jul 11, 2019

  1. fix: greedy match may cause unwanted replacement

    say we have below 2 existing blocks in file, and we specify "marker_begin_text_1" in playbook to do an update.
    But because of greedy match, the content of block 2 will also be overwritten.
    So this pull request is to resolve this issue.
    
    
    marker_begin_text_1
        content1
    end
    marker_begin_text_2
        content2
    end
    centurycoder committed Jul 11, 2019
    Copy the full SHA
    17641a7 View commit details
    Browse the repository at this point in the history