Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Nov 23, 2021
1 parent 8544eca commit f3b40fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3b40fa

Please sign in to comment.