Merge pull request #5555 from thibaudcolas/feature/detect-wagtail-rich-text

Add detection for Wagtail’s rich text data-block-key attributes
main
Elbert Alias 3 years ago committed by GitHub
commit 5a721fd1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -331,6 +331,11 @@
], ],
"description": "Wagtail is a Django content management system (CMS) focused on flexibility and user experience.", "description": "Wagtail is a Django content management system (CMS) focused on flexibility and user experience.",
"dom": { "dom": {
"[data-block-key]": {
"attributes": {
"data-block-key": "[a-z0-9]{5}"
}
},
"[style*='images/']": { "[style*='images/']": {
"attributes": { "attributes": {
"style": "(?:\\.[a-z]+|/media)(?:/[\\w-]+)?/(?:original_images/[\\w-]+|images/[\\w-.]+\\.(?:(?:fill|max|min)-\\d+x\\d+(?:-c\\d+)?|(?:width|height|scale)-\\d+|original))\\." "style": "(?:\\.[a-z]+|/media)(?:/[\\w-]+)?/(?:original_images/[\\w-]+|images/[\\w-.]+\\.(?:(?:fill|max|min)-\\d+x\\d+(?:-c\\d+)?|(?:width|height|scale)-\\d+|original))\\."

Loading…
Cancel
Save