Skip to content

Empty tag + closing tag confuses tags-parsing #108

@TrueBrain

Description

@TrueBrain

Given the following example:

import wikitextparser
wikitextparser.parse("<ref/ ></ref>").get_tags()[0].name

Raises an exception TypeError: 'NoneType' object is not subscriptable at

return self._match['name'].decode()
.
Removing the space does not create the exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions