@@ -704,7 +704,7 @@ self.validateJCardPropertyType = function(property) {
704
704
if ( ! property [ 0 ] . toUpperCase ( ) . startsWith ( "X-" ) ) {
705
705
self . add (
706
706
self . JCardPropertyTypes . includes ( property [ 0 ] . toUpperCase ( ) ) ,
707
- ` Property type '${ property [ 0 ] } ' MUST be present in the IANA registry.` ,
707
+ " Property type '" + property [ 0 ] . toLowerCase ( ) + " MUST be present in the IANA registry." ,
708
708
) ;
709
709
}
710
710
} ;
@@ -777,7 +777,7 @@ self.validateJCardPropertyValue = function(property) {
777
777
if ( self . isString ( property [ 0 ] ) && "ADR" === property [ 0 ] . toUpperCase ( ) && self . isArray ( property [ 3 ] ) ) {
778
778
self . add (
779
779
7 == property [ 3 ] . length ,
780
- "Length of the array in an ADR property MUST be exactly 7." ,
780
+ "Length of the array in an 'adr' property MUST be exactly 7." ,
781
781
"section-6.3.1" ,
782
782
) ;
783
783
@@ -1788,12 +1788,12 @@ self.validateCommonGTLDResponseProperties = function(response) {
1788
1788
} else if ( "ADR" == p [ 0 ] . toUpperCase ( ) ) {
1789
1789
if ( self . add (
1790
1790
Object . keys ( p [ 1 ] ) . map ( ( k ) => k . toUpperCase ( ) ) . includes ( "CC" ) ,
1791
- "'ADR ' properties of entity vCards MUST have a 'CC ' parameter."
1791
+ "'adr ' properties of entity vCards MUST have a 'cc ' parameter."
1792
1792
) ) {
1793
1793
const cc = p [ 1 ] [ Object . keys ( p [ 1 ] ) . filter ( ( k ) => "CC" == k . toUpperCase ( ) ) . shift ( ) ] ;
1794
1794
self . add (
1795
1795
self . countryCodes . includes ( cc ) ,
1796
- "'CC ' parameter '" + cc + "' MUST be a valid ISO 3166-alpha-2 code."
1796
+ "'cc ' parameter '" + cc + "' MUST be a valid ISO 3166-alpha-2 code."
1797
1797
) ;
1798
1798
}
1799
1799
@@ -1802,15 +1802,15 @@ self.validateCommonGTLDResponseProperties = function(response) {
1802
1802
if (
1803
1803
self . add (
1804
1804
self . isArray ( p [ 3 ] ) ,
1805
- "Value of an 'ADR ' property MUST be an array."
1805
+ "Value of an 'adr ' property MUST be an array."
1806
1806
) &&
1807
1807
7 == p [ 3 ] . length
1808
1808
) {
1809
1809
self . pushPath ( "[6]" ) ;
1810
1810
1811
1811
self . add (
1812
1812
p [ 3 ] [ 6 ] == "" ,
1813
- "The last item of structured address in an 'ADR ' property value MUST be empty."
1813
+ "The last item of structured address in an 'adr ' property value MUST be empty."
1814
1814
) ;
1815
1815
1816
1816
self . popPath ( "[6]" ) ;
@@ -2342,12 +2342,12 @@ self.validateGTLDEntity = function(rar) {
2342
2342
const keys = Object . keys ( p [ 1 ] ) . map ( ( k ) => k . toUpperCase ( ) ) ;
2343
2343
if ( self . add (
2344
2344
keys . includes ( "CC" ) ,
2345
- "JCard 'ADR ' property MUST include a 'CC ' parameter."
2345
+ "JCard 'adr ' property MUST include a 'cc ' parameter."
2346
2346
) ) {
2347
2347
const k = keys . filter ( ( k ) => "CC" == k . toUpperCase ( ) ) . shift ( ) ;
2348
2348
self . add (
2349
2349
self . countryCodes . includes ( p [ 1 ] [ k ] ) ,
2350
- "JCard 'ADR ' 'CC ' parameter MUST be a valid ISO-3166-alpha2 code."
2350
+ "JCard 'adr ' 'cc ' parameter MUST be a valid ISO-3166-alpha2 code."
2351
2351
) ;
2352
2352
}
2353
2353
@@ -2368,13 +2368,13 @@ self.validateGTLDEntity = function(rar) {
2368
2368
p [ 3 ] [ 2 ] . filter ( ( s ) => s . length > 0 ) . length > 0
2369
2369
)
2370
2370
) ,
2371
- "JCard 'ADR ' MUST include a Street address."
2371
+ "JCard 'adr ' MUST include a Street address."
2372
2372
) ;
2373
2373
2374
2374
2375
2375
self . add (
2376
2376
self . isString ( p [ 3 ] [ 3 ] ) && p [ 3 ] [ 3 ] . length > 0 ,
2377
- "JCard 'ADR ' MUST include a City."
2377
+ "JCard 'adr ' MUST include a City."
2378
2378
) ;
2379
2379
2380
2380
self . popPath ( "[3]" ) ;
@@ -2386,7 +2386,7 @@ self.validateGTLDEntity = function(rar) {
2386
2386
2387
2387
[ "FN" , "ADR" , "TEL" , "EMAIL" ] . forEach ( ( p ) => self . add (
2388
2388
seen_types . hasOwnProperty ( p ) ,
2389
- "Registrar entity JCard MUST contain a '" + p + "' property."
2389
+ "Registrar entity JCard MUST contain a '" + p . toLowerCase ( ) + "' property."
2390
2390
) ) ;
2391
2391
2392
2392
self . popPath ( ".vcardArray[1]" ) ;
0 commit comments