mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
actually allow url('data:) in custom css
This commit is contained in:
@@ -7,7 +7,7 @@ const SANITIZE_OPTIONS: Config = {
|
||||
ALLOWED_URI_REGEXP: /^(http(s?):)?\/\/.+/i,
|
||||
};
|
||||
|
||||
const regex = /(url\("?)(?!data:)/gim;
|
||||
const regex = /(url\(["'](?!data:))/gim;
|
||||
|
||||
const addStyles = (output: string[], styles: CSSStyleDeclaration) => {
|
||||
for (let prop = styles.length - 1; prop >= 0; prop -= 1) {
|
||||
|
||||
Reference in New Issue
Block a user