Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make RegEx more readable
Signed-off-by: Patrick <patrick.weiss@iteratec.com>
  • Loading branch information
p4trickweiss committed Jan 14, 2026
commit 189957517a671e38a898ed1e23353b7bc5655180
4 changes: 3 additions & 1 deletion scanners/subfinder/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function extractDomainFromArgs(args) {
if (arg.startsWith(`${flag}=`)) {
const value = arg.slice(flag.length + 1);
// Remove surrounding quotes if present
return value.replace(/^["']|["']$/g, "");
return value
.replace(/^["']/, "") // Remove leading quote
.replace(/["']$/, ""); // Remove trailing quote
}
}

Expand Down
Loading