File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 33Object . defineProperty ( exports , "__esModule" , {
44 value : true
55} ) ;
6- exports . default = isFDQN ;
6+ exports . default = isFQDN ;
77
88var _assertString = require ( './util/assertString' ) ;
99
@@ -21,7 +21,7 @@ var default_fqdn_options = {
2121 allow_trailing_dot : false
2222} ;
2323
24- function isFDQN ( str , options ) {
24+ function isFQDN ( str , options ) {
2525 ( 0 , _assertString2 . default ) ( str ) ;
2626 options = ( 0 , _merge2 . default ) ( options , default_fqdn_options ) ;
2727
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const default_fqdn_options = {
77 allow_trailing_dot : false ,
88} ;
99
10- export default function isFDQN ( str , options ) {
10+ export default function isFQDN ( str , options ) {
1111 assertString ( str ) ;
1212 options = merge ( options , default_fqdn_options ) ;
1313
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ var default_fqdn_options = {
130130 allow_trailing_dot : false
131131} ;
132132
133- function isFDQN ( str , options ) {
133+ function isFQDN ( str , options ) {
134134 assertString ( str ) ;
135135 options = merge ( options , default_fqdn_options ) ;
136136
@@ -211,7 +211,7 @@ function isEmail(str, options) {
211211 return false ;
212212 }
213213
214- if ( ! isFDQN ( domain , { require_tld : options . require_tld } ) ) {
214+ if ( ! isFQDN ( domain , { require_tld : options . require_tld } ) ) {
215215 return false ;
216216 }
217217
@@ -406,7 +406,7 @@ function isURL(url, options) {
406406 }
407407 }
408408
409- if ( ! isIP ( host ) && ! isFDQN ( host , options ) && ( ! ipv6 || ! isIP ( ipv6 , 6 ) ) ) {
409+ if ( ! isIP ( host ) && ! isFQDN ( host , options ) && ( ! ipv6 || ! isIP ( ipv6 , 6 ) ) ) {
410410 return false ;
411411 }
412412
@@ -1414,7 +1414,7 @@ var validator = {
14141414 isURL : isURL ,
14151415 isMACAddress : isMACAddress ,
14161416 isIP : isIP ,
1417- isFQDN : isFDQN ,
1417+ isFQDN : isFQDN ,
14181418 isBoolean : isBoolean ,
14191419 isAlpha : isAlpha ,
14201420 isAlphanumeric : isAlphanumeric ,
You can’t perform that action at this time.
0 commit comments