Skip to content

Commit ff1faeb

Browse files
committed
Remove carriage return
1 parent 0470b77 commit ff1faeb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

leetcode_study_tool/creator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def _sanitize(self, input: Union[str, list, None]) -> Union[str, list]:
8282
if isinstance(input, list):
8383
return input
8484
input = html.unescape(input)
85-
input = re.sub(r"[;\n]", " ", input)
85+
# input = input.replace(";", " ")
86+
# input = input.replace("\n", " ")
87+
input = re.sub(r"[;\n\r]", " ", input)
8688
input = input.replace("</strong>", "</strong><br>")
8789
input = re.sub(r"(<br>){2,}", "<br>", input)
8890
return input

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "leetcode-study-tool"
7-
version = "1.2.1"
7+
version = "1.2.2"
88
description = "A tool for studying Leetcode with Python"
99
authors = [{name="John Sutor", email="johnsutor3@gmail.com" }]
1010
license = {file = "LICENSE.txt"}

0 commit comments

Comments
 (0)