diff --git a/src/core/selector-type.js b/src/core/selector-type.js index 315371f..d07b17f 100644 --- a/src/core/selector-type.js +++ b/src/core/selector-type.js @@ -27,7 +27,7 @@ export const SelectorType = { */ const SelectorCategoryRegex = { Type : /^[A-Za-z]+/, - Attribute : /^[A-Za-z]+\[*\]$/, + Attribute : /^[A-Za-z]+\[[^\]]*\]$/, }; /** @@ -77,4 +77,4 @@ export default function getType(selector) { return SelectorTypeRegex.Class.test(selector) ? SelectorType.Class : SelectorTypeRegex.Id.test(selector) ? SelectorType.Id : SelectorType.None; -} \ No newline at end of file +}