Skip to content

Commit

Permalink
fix: correct regex escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Oct 16, 2023
1 parent e72eca7 commit ebfb30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ app.on('activate', (): void => {
// https://www.electronjs.org/docs/latest/tutorial/security
app.on('web-contents-created', (_, contents) => {
const allowedDomains = [
/^(www.)?github\.com$/i,
/^(www.)?play\.net$/i,
/^(www\.)?github\.com$/i,
/^(www\.)?play\.net$/i,
/^elanthipedia\.play\.net$/i,
];

Expand Down

0 comments on commit ebfb30b

Please sign in to comment.