Skip to content

Commit

Permalink
Update lib/config/validation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh authored Jun 19, 2024
1 parent 46ca164 commit 9d8ba7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ export async function validateConfig(
for (const rule of val as HostRule[]) {
if (is.nonEmptyString(rule.matchHost)) {
if (rule.matchHost.includes('://')) {
if (is.null_(parseUrl(rule.matchHost))) {
if (parseUrl(rule.matchHost) === null) {
errors.push({
topic: 'Configuration Error',
message: `hostRules matchHost \`${rule.matchHost}\` is not a valid URL.`,
Expand Down

0 comments on commit 9d8ba7b

Please sign in to comment.