From f3b40fab502310562619dc8dddc9670027b280e3 Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Tue, 23 Nov 2021 14:09:05 -0800 Subject: [PATCH] Add clarifying comment --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 9884a7e..43f0572 100644 --- a/src/index.ts +++ b/src/index.ts @@ -238,6 +238,7 @@ export class MvcValidationProviders { let lowerCaseValue = value.toLowerCase(); + // Match the logic in `UrlAttribute` return lowerCaseValue.indexOf('http://') > -1 || lowerCaseValue.indexOf('https://') > -1 || lowerCaseValue.indexOf('ftp://') > -1;