diff --git a/front/src/store/index.js b/front/src/store/index.js index 1d7d180..f36419a 100644 --- a/front/src/store/index.js +++ b/front/src/store/index.js @@ -105,7 +105,7 @@ export default createStore({ }, addRule: (state, rule) => { - if (rule.content.match(/\/poll/gm)) { + if (toCSS(rule) !== null) { state.rules.push(toCSS(rule)) } }