Skip to content

Commit

Permalink
fix: Overly permissive regular expression range
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamyplayer committed Sep 28, 2022
1 parent 3cfea1c commit 9fed7e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ async function tryCode() {
let r = codes.find(r => !r.c);
if (!r) return;
(r.c = 'ongoing'), (r.t = Date.now());
let e = r.code.match(/[0-z]+/g);
let e = r.code;
// console.log(r.code, 'aas')
if (!e) return;
let t = e[e.length - 1];
let a = `${bURL}${t}${params}`;
Expand Down

0 comments on commit 9fed7e4

Please sign in to comment.