mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33: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,
|
ALLOWED_URI_REGEXP: /^(http(s?):)?\/\/.+/i,
|
||||||
};
|
};
|
||||||
|
|
||||||
const regex = /(url\("?)(?!data:)/gim;
|
const regex = /(url\(["'](?!data:))/gim;
|
||||||
|
|
||||||
const addStyles = (output: string[], styles: CSSStyleDeclaration) => {
|
const addStyles = (output: string[], styles: CSSStyleDeclaration) => {
|
||||||
for (let prop = styles.length - 1; prop >= 0; prop -= 1) {
|
for (let prop = styles.length - 1; prop >= 0; prop -= 1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue