Skip to content

duplicate replacements occur if the search string is included in the replace string #6

@mrv20

Description

@mrv20

If the search string also matches the replacement string, the replacement is performed more than once on a line.

For example, if a file contains the line:

`ifndef ID_REGS_TEST_SV

running case-keep-replace from id_regs_test to top_id_regs_test will transform the line to:

`ifndef TOP_TOP_ID_REGS_TEST_SV

instead of the expected:

`ifndef TOP_ID_REGS_TEST_SV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions