Explorar o código

新增字符串“转化_

WuYiPei %!s(int64=5) %!d(string=hai) anos
pai
achega
549708619a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      controller/LangArea.py

+ 2 - 1
controller/LangArea.py

@@ -149,7 +149,8 @@ class LangAreaView(TemplateView):
                 lk = l
                 lk = lk.replace('.', '_')
                 lk = lk.replace('\\n', '_')
-                lk = lk.replace('“”', '_')
+                lk = lk.replace('“', '_')
+                lk = lk.replace('”', '_')
                 lk = lk.replace(' ', '_')
                 lk = lk.replace('\\\'', '_')
                 lk = lk.replace('\'', '_')