Skip to content

Commit 78e7fdd

Browse files
foolmoronmhevery
authored andcommittedJul 18, 2019
fix(core): allow Z variations of CSS transforms in sanitizer (#29264)
PR Close #29264
1 parent 1e9eeaf commit 78e7fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/sanitization/style_sanitizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {_sanitizeUrl} from './url_sanitizer';
2525
* transformation values.
2626
*/
2727
const VALUES = '[-,."\'%_!# a-zA-Z0-9]+';
28-
const TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?';
28+
const TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?';
2929
const COLOR_FNS = '(?:rgb|hsl)a?';
3030
const GRADIENTS = '(?:repeating-)?(?:linear|radial)-gradient';
3131
const CSS3_FNS = '(?:calc|attr)';

0 commit comments

Comments
 (0)
Please sign in to comment.