Skip to content

str-slice and str-insert should normalise quotes to double quotes #763

@xzyfer

Description

@xzyfer

Given

foo {
  a: str-slice("abcd", 1, 1);
  b: str-slice('abcd', 1, 1);
  c: str-slice(abcd, 1, 1);

  d: str-insert("abcd", "X", 1);
  e: str-insert("abcd", 'X', 1);
  f: str-insert('abcd', "X", 1);
  g: str-insert('abcd', 'X', 1);
}

Ruby sass 3.4

foo {
  a: "a";
  b: "a";
  c: a;
  d: "Xabcd";
  e: "Xabcd";
  f: "Xabcd";
  g: "Xabcd"; }

Libsass 3.1.0-beta

foo {
  a: "a";
  b: 'a';
  c: a;
  d: "Xabcd";
  e: "Xabcd";
  f: 'Xabcd';
  g: 'Xabcd'; }

Spec added sass/sass-spec#195

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