Disable unicorn/no-unsafe-regex for template parser

This commit is contained in:
Josh Junon 2018-02-14 18:29:19 -08:00
parent 52823001a5
commit 925397a0f5

View file

@ -1,3 +1,4 @@
/* eslint-disable unicorn/no-unsafe-regex */
'use strict';
const TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;