Skip to content

fix: match v2 submission check endpoint in regex - #79

Open
NamesMark wants to merge 1 commit into
marwanhawari:mainfrom
NamesMark:mfi/fix-submit-endpoint
Open

fix: match v2 submission check endpoint in regex#79
NamesMark wants to merge 1 commit into
marwanhawari:mainfrom
NamesMark:mfi/fix-submit-endpoint

Conversation

@NamesMark

Copy link
Copy Markdown

#78 found that FE update in LC broke the submission detection.

It seems that LeetCode's new submit flow polls /submissions/detail/{id}/v2/check/ instead of /submissions/detail/{id}/check/, so parseSubmissionId rejected every submission URL and no submit/accepted events fired.

This one-liner now accepts an optional v2 segment.

LeetCode's new submit flow polls /submissions/detail/{id}/v2/check/
instead of /submissions/detail/{id}/check/, so parseSubmissionId
rejected every submission URL and no submit/accepted events fired.
Accept an optional v2 segment; keep the numeric id requirement so
run-code interpret ids stay ignored.
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@NamesMark is attempting to deploy a commit to the marwanhawari's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the extension A label for the LeetRooms web extension code label Aug 31, 2026
@NamesMark

Copy link
Copy Markdown
Author

@marwanhawari please check the fix if you can

@NamesMark

Copy link
Copy Markdown
Author

Test after fix:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension A label for the LeetRooms web extension code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant