Skip to content

Comments

Parse decimal shorthand as number rather than string#34

Open
LukeTemp wants to merge 1 commit intoSirAnthony:masterfrom
LukeTemp:read-decimal-shorthand
Open

Parse decimal shorthand as number rather than string#34
LukeTemp wants to merge 1 commit intoSirAnthony:masterfrom
LukeTemp:read-decimal-shorthand

Conversation

@LukeTemp
Copy link

@LukeTemp LukeTemp commented Oct 9, 2022

Issue: #33

Before:

>>> lua.decode("""{ SizeZ = .8, }""")
{'SizeZ': '.8'}
>>> lua.decode("""{ SizeZ = 0.8, }""")
{'SizeZ': 0.8}

After:

>>> lua.decode("{ num = .8, }")
{'num': 0.8}
>>> lua.decode("{ num = 0.8, }")
{'num': 0.8}

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.

1 participant