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

Replace breaks on keywords within mixin invocations #2351

Closed
SLaks opened this issue Dec 21, 2014 · 2 comments
Closed

Replace breaks on keywords within mixin invocations #2351

SLaks opened this issue Dec 21, 2014 · 2 comments

Comments

@SLaks
Copy link
Contributor

SLaks commented Dec 21, 2014

Source:

@keyword: test;
.test {
    content: replace(@keyword, '(^[a-z])', '.$1');
}
a {
    .test();
}

Actual Result:

.test {
  content: .test;
}
a {
  content: ..test.;
}

Expected Result:

.test {
  content: .test;
}
a {
  content: .test;
}

Workarounds:
Turning the keyword into a string fixes this: e(replace('@{keyword}', '(^[a-z])', '.$1'))

Also, this only happens if the replace() call is inside a mixin invocation.

@seven-phases-max
Copy link
Member

See #2308 (fixed in v2.1.1).

@seven-phases-max
Copy link
Member

Closing as fixed with v2.1.1 (#2309).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants