spdx/yalm-python

Omitable Text current usage matches more than required text

Closed this issue · 3 comments

For example, lets say we have a template:
This is an optional <beginOptional>an<endOptional>.

The current algorithm would result in:
This is optional.

where it should result in
This is an optional.

Maybe we can save the positions of the optional tags and match using the string approach between 2 positions start and end where the tags occur.
(Open to ideas)

@goneall Plz check if this is okay.

@goneall I think that this issue can be closed now since it is resolved.

@anshuldutt21 Agreed - please go ahead and close