Skip to content

Comments

Remove invalid yaml#5

Open
scriptprojectsdev wants to merge 1 commit intopokemondb:masterfrom
scriptprojectsdev:remove-invalid-yaml
Open

Remove invalid yaml#5
scriptprojectsdev wants to merge 1 commit intopokemondb:masterfrom
scriptprojectsdev:remove-invalid-yaml

Conversation

@scriptprojectsdev
Copy link

The pokemon-forms.yaml has some invalid yaml (according to the Yams Swift parser)

@kiriphorito
Copy link

Also have an issue with js-yaml and trying to parse the file.

YAMLException: bad indentation of a mapping entry (31354:12)
31351 | gen: 9
31352 | release: scarlet-violet
31353 | type1: grass
31354 | type2: -
--------------------^
31355 | stats:
31356 | hp: 80

@omidantilong
Copy link

I had this same issue and just did a replaceAll for : - to : before parsing.

Dirty but it does the job for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants