Skip to content

Comment stripping applied in strings #177

@sarken

Description

@sarken

It looks like comment stripping might be a little overly aggressive. I'd expect it to ignore /* and */ in strings and simply return the original string, but instead it does the following:

Example 1

Input

.test-1 {
  content: "/* this is just a string */";
}

Output

.test-1 {
  content: "";
}

Example 2

Input

.test-2[name="/*"] {
  background: yellow;
}

.test-3[name="*/"] {
  display: flex;
}

Output

.test-2[name=""] {
  display: flex;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions