Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b7a1f5

Browse files
fixed regex
Signed-off-by: rajput-hemant <rajput.hemant2001@gmail.com>
1 parent a206224 commit 0b7a1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎.dev/update_readmes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def gsearch(query):
175175
tld="com",
176176
user_agent=USER_AGENT,
177177
):
178-
link = re.match(r"https:\/\/leetcode.com\/problems\/[a-z-]+\/", url)[0]
178+
link = re.match(r"https:\/\/leetcode.com\/problems\/[a-z-\d]+\/", url)[0]
179179

180180
log(f"Found link: {link}")
181181
return link

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /