mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
refactor(frontend): 优化工具和 API 模块
- 改进 sanitize 工具函数 - 优化 mocks 数据和处理器 - 优化 auth API 模块
This commit is contained in:
@@ -19,6 +19,7 @@ const DOMPURIFY_CONFIG = {
|
||||
'class', 'id'
|
||||
],
|
||||
// 允许的URI协议
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user