]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #10166 SassCompiler parent reference in middle of selector bugs 41/241/2
authorSebastian Nyholm <sebastian@vaadin.com>
Mon, 12 Nov 2012 09:07:29 +0000 (11:07 +0200)
committerSebastian Nyholm <sebastian@vaadin.com>
Mon, 12 Nov 2012 09:09:09 +0000 (11:09 +0200)
Change-Id: I725191cf209832c415146af917fb4b9b23912f89

theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java

index 3cc49b06dd17cb4fc49e975b8f2f9d43ce70a5d9..4098cc7cadb012e7069a9aac731984adaa205b0b 100644 (file)
@@ -35,7 +35,7 @@ public class ParentSelectorHandler {
             BlockNode parentBlock = (BlockNode) parentNode;
             for (final String s : block.getSelectorList()) {
 
-                if (s.startsWith("&") || s.endsWith("&")) {
+                if (s.contains("&")) {
                     for (final String parentSelector : parentBlock
                             .getSelectorList()) {
                         newList.add(s.replace("&", parentSelector));