Skip to content

[DEYE-5] : regex with delimiters + SpotAndMargin function can mix results. #7

@aallali

Description

@aallali

e.g of the problem:

  • we have this text:
    "Lorem Lepsum 1337 Lorem Lepsum ;1337;"
  • and this query --regex="(?<=;)(\d+)(?=;)"

the real number match here is the ;1337; with the ';' excluded
but when running SpotAndMarginfunc, i send the keyword that has been matched which is '1337'
the total match will be 1 but it will handle all '1337' inside the text as a match in order to apply the margin && highlight on it

Note: this bug doesn't affect the real number of matches, but just the output in screen which is highlighted

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions