Skip to content

Commit c910cc1

Browse files
[autofix.ci] apply automated fixes
1 parent 2b4d6b8 commit c910cc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/utils/readme.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,9 @@ ${html}
689689
allowedSchemes: ['http', 'https', 'mailto'],
690690
// disallow styles other than the ones shiki emits
691691
allowedStyles: {
692-
'span': {
693-
'color': [/^#[0-9a-fA-F]{3,8}$/],
694-
'--shiki-light': [/^#[0-9a-fA-F]{3,8}$/],
692+
span: {
693+
'color': [/^#[0-9a-f]{3,8}$/i],
694+
'--shiki-light': [/^#[0-9a-f]{3,8}$/i],
695695
},
696696
},
697697
// Transform img src URLs (GitHub blob → raw, relative → GitHub raw)

0 commit comments

Comments
 (0)