Skip to content

Commit

Permalink
fix(users/find): extend anonymous email regex (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
1natsu172 authored Aug 17, 2024
1 parent eeba77a commit 73012de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/users/find/[query].ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { GithubUser } from "~types";

const anonEmailRegex = /^\d+\+(.+)@users.noreply.github.com$/;
const anonEmailRegex = /^(?:\d+\+)?(.+)@users.noreply.github.com$/;

export default eventHandler(async (event) => {
let query = event.context.params.query + "";
Expand Down

0 comments on commit 73012de

Please sign in to comment.