allow 0 as valid value
This commit is contained in:
		
							parent
							
								
									b0e8f1f55b
								
							
						
					
					
						commit
						a5586f6b2c
					
				| @ -15,7 +15,7 @@ | |||||||
| 
 | 
 | ||||||
| exports.DNS_PACKER_TYPE_SOA = function (ab, dv, total, record) { | exports.DNS_PACKER_TYPE_SOA = function (ab, dv, total, record) { | ||||||
|   function notNumber(n) { |   function notNumber(n) { | ||||||
|     return 'number' === typeof n && !isNaN(n); |     return 'number' !== typeof n || isNaN(n); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   if (!record.primary && !record.name_server) { |   if (!record.primary && !record.name_server) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user