From adad2e7bf1c1ffdc91264deb64b210d59ebac950 Mon Sep 17 00:00:00 2001 From: Namida Aneskans Date: Tue, 20 Oct 2015 16:00:59 +0200 Subject: [PATCH] Update selector-type.js with new Attribute regex [^\]]* should work. What are you using to test it? --- src/core/selector-type.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}