Skip to content

Floating point value with trailing dot removes newline, causing syntax error #46

@mircea3

Description

@mircea3

The following is correct:

>>> jsmin("""
x = 1.0
y = 2
""")
'x=1.0\ny=2'

But the following removes the newline, causing a syntax error:

>>> jsmin("""
x = 1.
y = 2
""")
'x=1.y=2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions