Skip to content

Commit e07ea1b

Browse files
committed
fix: edit url
1 parent ba933b1 commit e07ea1b

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

docs/lcci/1.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
comment: true
3+
difficulty: 简单
4+
edit_url: https://github.com/doocs/leetcode/edit/main/lcci/01.01.Is%20Unique/README.md
5+
---
6+
7+
18
# [面试题 01.01. 判定字符是否唯一](https://leetcode.cn/problems/is-unique-lcci)
29

310

docs/lcof/3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
comment: true
3+
difficulty: 简单
4+
edit_url: https://github.com/doocs/leetcode/edit/main/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9803.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0%E5%AD%97/README.md
5+
---
6+
17
# [面试题 03. 数组中重复的数字](https://leetcode.cn/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/)
28

39
## 题目描述

hooks/committer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ def __init__(self):
6161

6262
@staticmethod
6363
def get_request_url(edit_url: str) -> str:
64-
path = requests.utils.quote(
65-
edit_url.replace("https://github.com/doocs/leetcode/edit/main", "").replace(
66-
"%20", " "
67-
)
68-
)
64+
path = edit_url.replace("https://github.com/doocs/leetcode/edit/main", "")
6965
return f"https://api.github.com/repos/doocs/leetcode/commits?path={path}&sha=main&per_page=100"
7066

7167
def on_pre_build(self, config):

0 commit comments

Comments
 (0)