Skip to content

variable interpolation causes additional string escaping #1115

@kbullaughey

Description

@kbullaughey

I originally posted this issue to node-sass, but as pointed out there, this seems to be an issue in libsass.

It seems when a string involves string interpolation, slashes that appear elsewhere in the string, say for unicode sequences, end up getting slashed out. This did not used to be the case.

For example:

li:before { content: "#{'y'}\00a0"; }

Will become

li:before { content: "y\\00a0"; }

Instead of:

li:before { content: "y\00a0"; }

I confirmed this was not a node-sass issue by reproducing it with sassc. Older versions of node-sass using older versions of libsass do not cause this unexpected behavior.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions