Skip to content

Commit

Permalink
Try to fix for Chinese characters.
Browse files Browse the repository at this point in the history
Try to fix for Chinese characters.
  • Loading branch information
yanglr authored Oct 18, 2020
1 parent 8b53b7a commit b65fb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/_create-archive-files.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf-8
import re
import os
import json
Expand Down Expand Up @@ -80,7 +81,7 @@ def delete_folder(folder_path, out_message):
for archive_value in list(set(json_data[archive_type])):
value_escaped = re.sub(r'\s|\.', '-', archive_value)
value_escaped = re.sub(r'#', 'sharp', value_escaped)
value_escaped = re.sub(r'[^a-z0-9A-Z_]', '-', value_escaped)
# value_escaped = re.sub(r'[^a-z0-9A-Z_]', '-', value_escaped)
value_escaped = value_escaped.lower()
front_matter = create_front_matter(
arch_type, archive_type, archive_value, value_escaped)
Expand Down

0 comments on commit b65fb86

Please sign in to comment.