Skip to content

Commit

Permalink
Merge pull request #4 from skunkfrukt/patch-1
Browse files Browse the repository at this point in the history
Update selector-type.js with new Attribute regex
  • Loading branch information
GGAlanSmithee committed Oct 20, 2015
2 parents c115676 + adad2e7 commit 7ccad38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/selector-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const SelectorType = {
*/
const SelectorCategoryRegex = {
Type : /^[A-Za-z]+/,
Attribute : /^[A-Za-z]+\[*\]$/,
Attribute : /^[A-Za-z]+\[[^\]]*\]$/,
};

/**
Expand Down Expand Up @@ -77,4 +77,4 @@ export default function getType(selector) {
return SelectorTypeRegex.Class.test(selector) ? SelectorType.Class :
SelectorTypeRegex.Id.test(selector) ? SelectorType.Id :
SelectorType.None;
}
}

0 comments on commit 7ccad38

Please sign in to comment.