Skip to content

Commit

Permalink
Added linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AydanPirani committed Apr 14, 2024
1 parent 7976f28 commit df0af0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/cors-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cors from "cors";
const allowedOrigins = ["https://reflectionsprojections.org"];
// Function to check if the origin matches the deploy preview format
function isNetlifyDeployPreview(origin: string) {
const regex = new RegExp("deploy-preview-[0-9]*(--rp2024\.netlify\.app)(.*)")
const regex = new RegExp("deploy-preview-[0-9]*(--rp2024.netlify.app)(.*)");
return regex.test(origin);
}

Expand Down

0 comments on commit df0af0e

Please sign in to comment.