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 8253419 commit f54888a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2686,10 +2686,11 @@ 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 f54888a

Please sign in to comment.