File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ const validate = (bsConfig, args) => {
183
183
184
184
if ( Utils . searchForOption ( '--async' ) && ( ! Utils . isUndefined ( args . async ) && bsConfig [ "connection_settings" ] [ "local" ] ) ) reject ( Constants . validationMessages . INVALID_LOCAL_ASYNC_ARGS ) ;
185
185
186
- if ( bsConfig . run_settings . userProvidedGeolocation && ! bsConfig . run_settings . geolocation . match ( / ^ [ A - Z ] { 2 } $ / g) ) reject ( Constants . validationMessages . INVALID_GEO_LOCATION ) ;
186
+ if ( bsConfig . run_settings . userProvidedGeolocation && ! bsConfig . run_settings . geolocation . match ( / ^ [ A - Z ] { 2 } ( - [ A - Z 0 - 9 ] { 2 , 3 } ) ? $ / g) ) reject ( Constants . validationMessages . INVALID_GEO_LOCATION ) ;
187
187
188
188
if ( bsConfig [ "connection_settings" ] [ "local" ] && bsConfig . run_settings . userProvidedGeolocation ) reject ( Constants . validationMessages . NOT_ALLOWED_GEO_LOCATION_AND_LOCAL_MODE ) ;
189
189
You can’t perform that action at this time.
0 commit comments