Skip to content

Beautifier breaks adds space in underscore seperated number #1933

Closed
@Centipede5

Description

@Centipede5

Description

when you use the "_" character to break up numbers in JavaScript, the Beautifier breaks adds a space before the _ which causes an error if you try to run it

Input

The code looked like this before beautification:

var x = 100_000

Expected Output

The code should have looked like this after beautification:

var x = 100_000

Actual Output

The code actually looked like this after beautification:

var x = 100 _000

Steps to Reproduce

use any broken-up number in the beautifier

Environment

OS: Windows (any?)

Settings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions