chore: address security alerts on braces escape and KaTeX (#3301)

This commit is contained in:
Nite Knite 2024-04-10 16:16:24 +08:00 • committed by GitHub
commit 4c1cfd9278
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 4 deletions

View file

@ -1,5 +1,5 @@
export function getHashtagRegexString(): string {
const hashtag = '(\{)(\{)([a-zA-Z_][a-zA-Z0-9_]{0,29})(\})(\})'
const hashtag = '\\{\\{[a-zA-Z_][a-zA-Z0-9_]{0,29}\\}\\}'
return hashtag
}