Skip to content

Commit

Permalink
fix(core): allow Z variations of CSS transforms in sanitizer (#29264)
Browse files Browse the repository at this point in the history
PR Close #29264
  • Loading branch information
foolmoron authored and mhevery committed Jul 18, 2019
1 parent 1e9eeaf commit 78e7fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/sanitization/style_sanitizer.ts
Expand Up @@ -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)';
Expand Down

0 comments on commit 78e7fdd

Please sign in to comment.