Skip to content

Commit 985363d

Browse files
committed
Add TODO in isWithinScope
1 parent 286325d commit 985363d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/parser/src/modules/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ function isWithinScope(
144144
if (!scope) {
145145
return true;
146146
}
147+
// TODO: This function could be generalized to better handle edge cases. For now it performs a basic check to see if the URL is within the same domain or valid subdomain variants as the scope.
147148
try {
148149
const urlObj = new URL(url);
149150
const scopeObj = new URL(scope);

0 commit comments

Comments
 (0)