Closed Anders429 closed 3 years ago
This is fixed by keeping track of whether a Pointer
is within a separator's graph. If it is, then matches and exceptions found on returning are not stored, since it is assumed they were already encountered prior to entering the separator's graph.
Relevant commit is here.
It appears that separators are not included at the beginning of matches, but are included at the end. This causes examples like the following to fail:
The assertion doesn't pass, because the censor returns
"bar ****bar"
, which is not what we want. Separators shouldn't be included when they are at either end of the match.