Skip to content

Function variables are changed when using numbers and underscores together #2462

Closed
@bradcornford

Description

@bradcornford

When placing numbers before underscores in function variables, these seem to be changed to include a space character between the two.

Take the following less snippet:

@type: 5_large;

.icon-@{type} {
    background-image: ~"url(/img/icon/@{type}.svg)";
}

The output is as follows, notice the space between 5 and the underscore:

.icon-5 _large {
  background-image: url(../img/icon/5 _large.svg);
}

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