Update pages/Reformat.py
Browse files- pages/Reformat.py +1 -1
pages/Reformat.py
CHANGED
@@ -17,7 +17,7 @@ st.title("格式化工具")
|
|
17 |
|
18 |
|
19 |
def re_format(origin_str: str) -> str:
|
20 |
-
new_str = origin_str.replace('\r', '').replace('\n', '')
|
21 |
|
22 |
matches = re.findall(r'\[\s*\d+(?:,\s*\d+)*]', new_str)
|
23 |
|
|
|
17 |
|
18 |
|
19 |
def re_format(origin_str: str) -> str:
|
20 |
+
new_str = origin_str.replace('\r', '').replace('\n', '').replace('', '①').replace('', '②').replace('', '③')
|
21 |
|
22 |
matches = re.findall(r'\[\s*\d+(?:,\s*\d+)*]', new_str)
|
23 |
|