Skip to content

.validate() false-positive #327

@sindresorhus

Description

@sindresorhus
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Description

Input

<svg></svg> foo bar

Code

const parser = require('fast-xml-parser');

console.log(parser.validate('<svg></svg> foo bar'));

Output

true

expected data

Expected it to be false or an object describing the error.

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

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