Skip to content

Investigate matching differences in optional-line head vs tail when optional line not present #90

@bskinn

Description

@bskinn

Compare the passing test cases here for head, and here for tail.

Presumably it has something to do with the regex having to match head in order to get to body, whereas it can discard/ignore tail once it's grabbed body?

Unclear why this would lead to the None matching output, though. Seems like the head pattern has to be making a pair of length-zero matches immediately before the body content starts.

This seems like a really uncommon situation, though...and it's not like it makes the Parser fail to match. So, figuring it out seems really YAGNI.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions