Skip to content

Undefined is not a function - .match() #28

@Kikketer

Description

@Kikketer

On line 222 of your plugins file (or line 183:50 in the generated js file) the .match() was complaining that it didn't exist. I did a simple console out of the opts.content, and it appeared to be HTML.

I fixed the issue by adding a .toString()

partialContainers = (opts.content || '').toString().match(partialContainerRegex) || [];

I assume this shouldn't need to happen and maybe I'm doing something wrong. But this error flew the instant I added this plugin (before I even had anything else setup).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions