style(core): improve readability of style_sanizer(_spec).ts (#33841)

PR Close #33841
This commit is contained in:
Igor Minar
2019-11-14 16:49:13 -08:00
committed by Alex Rickabaugh
parent 05a18cc4cb
commit 4e0eb3627d
2 changed files with 56 additions and 54 deletions

View File

@ -29,7 +29,7 @@ const VALUES = '[-,."\'%_!# a-zA-Z0-9]+';
const TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?';
const COLOR_FNS = '(?:rgb|hsl)a?';
const GRADIENTS = '(?:repeating-)?(?:linear|radial)-gradient';
const CSS3_FNS = '(?:calc|attr)';
const CSS3_FNS = '(?:attr|calc)';
const FN_ARGS = '\\([-0-9.%, #a-zA-Z]+\\)';
const SAFE_STYLE_VALUE = new RegExp(
`^(${VALUES}|` +