Skip to content

Commit

Permalink
[options] Fix element-case detecting & processing
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored and tonyganch committed Jul 11, 2016
1 parent 3e6e5a1 commit 14a65b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options/element-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let option = {
ast.traverse((node) => {
if (!node.is('selector') && !node.is('arguments')) return;

node.forEach('simpleSelector', (selector) => {
node.forEach('typeSelector', (selector) => {
selector.forEach('ident', (ident) => {
ident.content = value === 'lower' ?
ident.content.toLowerCase() :
Expand All @@ -58,7 +58,7 @@ let option = {
ast.traverse((node) => {
if (!node.is('selector') && !node.is('arguments')) return;

node.forEach('simpleSelector', (selector) => {
node.forEach('typeSelector', (selector) => {
selector.forEach('ident', (ident) => {
if (ident.content.match(/^[a-z]+$/)) {
detected.push('lower');
Expand Down

0 comments on commit 14a65b5

Please sign in to comment.