Previously, s:ValidBefore was determining text_before_opener by checking the length of the opener. This would produce inconsistent behavior in cases where the opener included a wildcard and was matching some contents.
Example with opener <*>:
Text like
text_before_opener
test<A>
test
test<String>
test<Stri
This fix changes the text_before_opener to also include any matched wildcard characters.
This is a stab at addressing https://github.com/tmsvg/pear-tree/issues/31
Previously,
s:ValidBefore
was determiningtext_before_opener
by checking the length of the opener. This would produce inconsistent behavior in cases where the opener included a wildcard and was matching some contents.Example with opener
<*>
:text_before_opener
test<A>
test
test<String>
test<Stri
This fix changes the
text_before_opener
to also include any matched wildcard characters.