Make suggestion to replace example.com more explicit.

This commit is contained in:
Max Schaefer
2023-09-12 16:53:36 +01:00
parent 7ddb7da65e
commit a9e81672f0
3 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ const app = require("express")();
function isLocalUrl(path) {
try {
return (
// TODO: consider substituting your own domain for example.com
new URL(path, "https://example.com").origin === "https://example.com"
);
} catch (e) {