@@ -61,14 +61,21 @@ describe(parseIni.name, () => {
61
61
// Some characters are not allowed in profile name, but we parse them as customers use them.
62
62
// `@` https://github.com/awslabs/smithy-typescript/issues/1026
63
63
// `+` https://github.com/aws/aws-sdk-js-v3/issues/5373
64
- it . each ( [ "-" , "_" , "@" , "+" ] ) ( "returns data for character '%s' in profile name" , ( specialChar : string ) => {
65
- const mockProfileName = [ "profile" , "stage" ] . join ( specialChar ) ;
66
- const mockSectionFullName = [ "profile" , mockProfileName ] . join ( " " ) ;
67
- const mockInput = getMockProfileContent ( mockSectionFullName , mockProfileData ) ;
68
- expect ( parseIni ( mockInput ) ) . toStrictEqual ( {
69
- [ [ "profile" , mockProfileName ] . join ( CONFIG_PREFIX_SEPARATOR ) ] : mockProfileData ,
70
- } ) ;
71
- } ) ;
64
+ // `.` https://github.com/aws/aws-sdk-js-v3/issues/5449
65
+ // `/` https://github.com/awslabs/smithy-typescript/issues/1053
66
+ // `%` https://github.com/aws/aws-sdk-java-v2/pull/1538
67
+ // `:` https://github.com/aws/aws-sdk-java-v2/pull/1898
68
+ it . each ( [ "-" , "_" , "@" , "+" , "." , "/" , "%" , ":" ] ) (
69
+ "returns data for character '%s' in profile name" ,
70
+ ( specialChar : string ) => {
71
+ const mockProfileName = [ "profile" , "stage" ] . join ( specialChar ) ;
72
+ const mockSectionFullName = [ "profile" , mockProfileName ] . join ( " " ) ;
73
+ const mockInput = getMockProfileContent ( mockSectionFullName , mockProfileData ) ;
74
+ expect ( parseIni ( mockInput ) ) . toStrictEqual ( {
75
+ [ [ "profile" , mockProfileName ] . join ( CONFIG_PREFIX_SEPARATOR ) ] : mockProfileData ,
76
+ } ) ;
77
+ }
78
+ ) ;
72
79
73
80
it ( "returns data for two profiles" , ( ) => {
74
81
const mockProfile1 = getMockProfileContent ( mockProfileName , mockProfileData ) ;
0 commit comments