Skip to content

NoMethodError raised when parsing invalid wikitext #81

@robfors

Description

@robfors

When I try to parse the english Wikipedia page for 2012 BDO World Darts Championship and Progress Wrestling, Infoboxer currently raises NoMethodError.

This can currently be reproduced with

Infoboxer.wikipedia.get('2012 BDO World Darts Championship') #=> NoMethodError: undefined method `named?' for #<Heading(level: 3): Women>
Infoboxer.wikipedia.get('Progress Wrestling') #=> NoMethodError: undefined method `named?' for #<Heading(level: 3): Progress Proteus Championship>


I took the 2012 BDO World Darts Championship wikitext and narrowed the problem to

{{
|a
<!---->
}}

<!---->

{|
|-
{{}}

=B=

which will raise NoMethodError: undefined method `named?' for #<Paragraph: =B=>.
I can not remove any more as the error will disappear.

I am using Infoboxer 7c81182.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions