Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jyx04 authored Jun 8, 2024
1 parent f54888a commit 8f7a73f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2686,11 +2686,10 @@ if (userName.length > 50) {


// 如果输入用户名fk开头,直接视作sharetoken
if (userName){
if (userName.startsWith('fk-')) {
const shareToken = userName;
return Response.redirect(await getOAuthLink(shareToken, proxiedDomain), 302);
}}
}
const userRegex = new RegExp(`^${userName}_(\\d+)$`);
let fullUserName = userName;
let foundSuffix = false;
Expand Down

0 comments on commit 8f7a73f

Please sign in to comment.