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

Var text following optional text fails matching #119

Open
goneall opened this issue Nov 23, 2017 · 0 comments
Open

Var text following optional text fails matching #119

goneall opened this issue Nov 23, 2017 · 0 comments

Comments

@goneall
Copy link
Member

goneall commented Nov 23, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant