Disable unicorn/no-unsafe-regex for template parser
This commit is contained in:
parent
52823001a5
commit
925397a0f5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue