perf: 优化创建账号密码校验逻辑 (#12383)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-12-20 16:35:36 +08:00
committed by GitHub
parent c66b1db784
commit 533f13c634
6 changed files with 223 additions and 202 deletions

View File

@@ -137,10 +137,7 @@ class Account(AbsConnectivity, LabeledMixin, BaseAccount):
return v.replace('{%', '{{ "{%" }}').replace('%}', '{{ "%}" }}')
if value.startswith('{{') and value.endswith('}}'):
return '{{' + escape(value[2:-2]) + '}}'
else:
return escape(value)
return escape(value)
def replace_history_model_with_mixin():