Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper string concatenation w/string functions #1279

Closed
davidkpiano opened this issue Jun 16, 2015 · 2 comments
Closed

Improper string concatenation w/string functions #1279

davidkpiano opened this issue Jun 16, 2015 · 2 comments

Comments

@davidkpiano
Copy link

TEST:

@function capitalize($string) {
    $char: str-slice($string, 1, 1);

    @return to-upper-case($char) + str-slice($string, 2);
}

.test {
  test: capitalize('fred');
}

EXPECTED: (results per Ruby Sass 3.4.14)

.test {
  test: "Fred";
}

ACTUAL: (tested on LibSass 3.2.5)

.test {
  test: "F"red;
}
@mgreter mgreter added this to the 3.3 milestone Jun 16, 2015
@mgreter mgreter self-assigned this Jun 16, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jun 23, 2015
@mgreter
Copy link
Contributor

mgreter commented Jun 23, 2015

Spec test should also include test for to-lower-case!

xzyfer added a commit to xzyfer/sass-spec that referenced this issue Jun 29, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Jun 29, 2015

Specs added sass/sass-spec#413

mgreter added a commit to mgreter/libsass that referenced this issue Jun 30, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jun 30, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jun 30, 2015
xzyfer pushed a commit to xzyfer/libsass that referenced this issue Jul 8, 2015
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants