Skip to content

Words "left" and "right" flipped in selectors before a comma  #35

Closed
@NiviJah

Description

@NiviJah

Consider this example

[class*="span"].pull-right,
.row-fluid [class*="span"].pull-right {
  float: right;
}

the code doesn't take the "," as end of rule and therefor transform it as well.
I'm kindda new to Regex but I came up with this solution for now :

lookAheadNotLetterPattern = '(?![a-zA-Z]|[\\,])'

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