Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add a check for strings disguised as leading zeros followed by numbers #180

Merged
merged 2 commits into from Oct 31, 2020
Merged

Add a check for strings disguised as leading zeros followed by numbers #180

merged 2 commits into from Oct 31, 2020

Conversation

stephanbuys
Copy link
Contributor

@stephanbuys stephanbuys commented Oct 30, 2020

Closes #179.

According to the YAML 1.2 spec (https://yaml.org/spec/1.2/spec.html#id2761292) numbers sequences with a leading zeros (that are not special encoding identifiers such as 0x, 0b, etc) are actually strings.

This patch handles this case, all existing tests still pass.

Resolves Issue #179

According to the YAML 1.2 spec (https://yaml.org/spec/1.2/spec.html#id2761292) numbers sequences with a leading zeros (that are not special encoding identifiers such as 0x, 0b, etc) are actually strings.

This patch handles this case, all existing tests still pass.
@dtolnay dtolnay merged commit ce23aff into dtolnay:master Oct 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect identification of sequences of digits with one or more leading zero as Numbers
2 participants