소스 검색

분류가 include에 뜨는 버그 수정

Surplus_Up (2DU) 6 년 전
부모
커밋
73058cf9b0
4개의 변경된 파일12개의 추가작업 그리고 9개의 파일을 삭제
  1. 4 4
      language/en-US.json
  2. 4 4
      language/ko-KR.json
  3. 3 0
      route/api_w.py
  4. 1 1
      version.json

+ 4 - 4
language/en-US.json

@@ -151,7 +151,7 @@
         "count" : "Number of Contributions",
         "alarm" : "Notice(s)",
         "user_document" : "User[s] document",
-        "user_head" : "User[s] <head>",
+        "user_head" : "User[s] <HEAD>",
         "user_document_acl" : "User[s] document ACL",
         "encryption_method" : "Encryption method",
         "check_key" : "Check authentication key",
@@ -199,8 +199,8 @@
             "_comment_2.2.1_" : "List",
                 "main_setting" : "Main settings",
                 "text_setting" : "Text settings",
-                "main_head" : "Global <head>",
-                "main_body" : "Global <body>",
+                "main_head" : "Global <HEAD>",
+                "main_body" : "Global <BODY>",
             "_comment_2.2.2_" : "Main",
                 "wiki_name" : "Wiki[s] name",
                 "wiki_logo" : "Wiki[s] logo",
@@ -288,7 +288,7 @@
         "oauth_settings_not_found" : "Administrator has not provided any data about using this feature.",
         "oauth_disabled" : "Administrator has disabled this feature.",
         "http_warring" : "Warning : If you are not on HTTPS connection, Your information can be leaked. We won't response to that.",
-        "user_head_warring" : "User[s] <head> will deleted if you close the browser or sign-in",
+        "user_head_warring" : "User[s] <HEAD> will deleted if you close the browser or sign-in",
         "no_login_warring" : "Non-login status. IP is logged when working with non-login.",
         "user_reset_sign" : "Your account information has changed like this.",
         "update_warring" : "Manual updates are recommended if your version is 0.2 or lower than the latest version. For Windows, the contents of the route folder disappear.",

+ 4 - 4
language/ko-KR.json

@@ -124,7 +124,7 @@
     "new_password": "새 비밀번호",
     "authority_use_list": "권한 사용 목록",
     "alarm": "알림",
-    "main_body": "전역 <body>",
+    "main_body": "전역 <BODY>",
     "all_document_list": "모든 문서 목록",
     "update": "업데이트",
     "login_able": "로그인 가능",
@@ -247,7 +247,7 @@
     "id_char_error": "오직 한글과 알파벳, 공백만 사용 가능합니다.",
     "id_filter_add": "ID 필터 추가",
     "skin": "스킨",
-    "user_head": "사용자 <head>",
+    "user_head": "사용자 <HEAD>",
     "agreement": "동의",
     "stop": "중지",
     "ie_no_data_required": "이 기능을 수행하는데 필요한 데이터가 제공되지 않았습니다.",
@@ -266,14 +266,14 @@
     "recent_change": "최근 편집",
     "destruction": "취소",
     "count": "기여 횟수",
-    "main_head": "전역 <head>",
+    "main_head": "전역 <HEAD>",
     "recent_ban": "최근 차단",
     "google_app_password": "Google 앱 비밀번호",
     "id_filter_list": "ID 필터 목록",
     "other": "기타",
     "edit": "편집",
     "open_discussion_list": "열린 토론 목록",
-    "user_head_warring": "비로그인시 브라우저를 닫거나 로그인시 사용자의 <head>는 삭제됩니다.",
+    "user_head_warring": "비로그인시 브라우저를 닫거나 로그인시 사용자의 <HEAD>는 삭제됩니다.",
     "email_required": "이메일 필요",
     "1_day": "1일",
     "regex_error": "정규표현식에 오류가 있습니다.",

+ 3 - 0
route/api_w.py

@@ -21,7 +21,10 @@ def api_w_2(conn, name):
                 if data:
                     if flask.request.args.get('include', '1'):
                         include_re = re.compile('\[include\(((?:(?!\)\]).)+)\)\]', re.I)
+                        category_re = re.compile('\[\[(?:(?:category|분류):(?:(?!\[\[|\]\]).)+)\]\]', re.I)
+                        
                         json_data = include_re.sub('', data[0][0])
+                        json_data = category_re.sub('', json_data)
                     else:
                         json_data = g_data[0]
 

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.3-master-09",
+        "r_ver" : "v3.1.3-master-10",
         "c_ver" : "400003",
         "s_ver" : "2"
     }, "stable" : {