mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
actually allow url('data:) in custom css
This commit is contained in:
parent
854222d2fa
commit
c36735575f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue