fix(core): allow Z variations of CSS transforms in sanitizer (#29264)

PR Close #29264
This commit is contained in:
Momin Khan 2019-03-12 15:09:42 -04:00 committed by Miško Hevery
parent 1e9eeafa9e
commit 78e7fdd98d
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ import {_sanitizeUrl} from './url_sanitizer';
* transformation values.
*/
const VALUES = '[-,."\'%_!# a-zA-Z0-9]+';
const TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?';
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)';