Fixed customlocation parsing (#19893)

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2022-06-30 11:07:13 -07:00
committed by GitHub
parent 650af12fc8
commit 9fbd3b3864

View File

@@ -206,7 +206,7 @@ export class ConnectToControllerDialog extends ControllerDialogBase {
if (controllerModel.info.connectionMode === ConnectionMode.direct) {
const rawCustomLocation = <string>controllerModel.controllerConfig?.metadata.annotations['management.azure.com/customLocation'];
const exp = /customlocations\/([\S]*)/;
const exp = /customLocations\/([\S]*)/;
controllerModel.info.customLocation = <string>exp.exec(rawCustomLocation)?.pop();
}
} catch (err) {