File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 127
127
if ( preferences . branchKey === null ) {
128
128
throw new Error ( 'BRANCH SDK: Invalid "branch-key" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
129
129
}
130
- if ( preferences . uriScheme === null || ! / ^ [ a - z A - Z 0 - 9 - .] * $ / . test ( preferences . uriScheme ) ) {
130
+ if ( preferences . uriScheme === null || ! / ^ [ a - z A - Z 0 - 9 - .] + $ / . test ( preferences . uriScheme ) ) {
131
131
throw new Error ( 'BRANCH SDK: Invalid "uri-scheme" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
132
132
}
133
133
if ( preferences . linkDomain === null || ! / ^ (? ! .* ?w w w ) .* ( [ a - z A - Z 0 - 9 ] + ( \. [ a - z A - Z 0 - 9 ] + ) + .* ) $ / . test ( preferences . linkDomain ) ) {
134
134
throw new Error ( 'BRANCH SDK: Invalid "link-domain" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
135
135
}
136
- if ( preferences . iosBundleId === null || ! / ^ [ a - z A - Z 0 - 9 . ] * $ / . test ( preferences . iosBundleId ) ) {
136
+ if ( preferences . iosBundleId === null || ! / ^ [ a - z A - Z 0 - 9 . - ] + $ / . test ( preferences . iosBundleId ) ) {
137
137
throw new Error ( 'BRANCH SDK: Invalid "id" or "ios-CFBundleIdentifier" in <widget> in your config.xml. Docs https://goo.gl/GijGKP' )
138
138
}
139
139
if ( preferences . iosTeamRelease !== null && ! / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / . test ( preferences . iosTeamRelease ) ) {
142
142
if ( preferences . iosTeamDebug !== null && ! / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / . test ( preferences . iosTeamDebug ) ) {
143
143
throw new Error ( 'BRANCH SDK: Invalid "ios-team-debug" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
144
144
}
145
- if ( preferences . androidBundleId !== null && ! / ^ [ a - z A - Z 0 - 9 . ] * $ / . test ( preferences . androidBundleId ) ) {
145
+ if ( preferences . androidBundleId !== null && ! / ^ [ a - z A - Z 0 - 9 . _ ] + $ / . test ( preferences . androidBundleId ) ) {
146
146
throw new Error ( 'BRANCH SDK: Invalid "id" or "android-packageName" in <widget> in your config.xml. Docs https://goo.gl/GijGKP' )
147
147
}
148
148
if ( preferences . androidPrefix !== null && ! / ^ [ / ] .[ a - z A - Z 0 - 9 ] { 3 } $ / . test ( preferences . androidPrefix ) ) {
You can’t perform that action at this time.
0 commit comments