Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing bug when key start with months prefix with pyparsing>=3.0.0 #301

Open
etiennebrateau opened this issue Feb 14, 2023 · 0 comments
Open

Comments

@etiennebrateau
Copy link

import pyhocon

parser = pyhocon.ConfigFactory()
conf2 = """
x: {
    months_key1: 6
    months_key2: 1
}
"""
result = parser.parse_string(conf2)
assert result.get("x").get("months_key1") == 6
assert result.get("x").get("months_key2") == 1

This code pass with pyparsing <3.0.0 and fails with pyparsing>3.0.0 because the months is not interpreted as part of the other key but as time specifier

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

No branches or pull requests

1 participant