tools icon indicating copy to clipboard operation
tools copied to clipboard

Var text following optional text fails matching

Open goneall opened this issue 7 years ago • 0 comments

If a license template has the following form:

some text that doesn't affect the outcome <<beginOptional>>some optional text <<beginOption>>make this complext<<endOptional>><<endOptional>> <<var name="something"; original="orig";match=".+">> more text

it will fail since the match template parser will look for the more text without considering possible variable text.

This issue will not occur if there is no nested optional or var elements nested inside the optional.

goneall avatar Nov 23 '17 04:11 goneall