diff --git a/front/src/Components/EnableCamera/EnableCameraScene.svelte b/front/src/Components/EnableCamera/EnableCameraScene.svelte index cec4621f..605a1458 100644 --- a/front/src/Components/EnableCamera/EnableCameraScene.svelte +++ b/front/src/Components/EnableCamera/EnableCameraScene.svelte @@ -61,8 +61,8 @@ onDestroy(unsubscribe); function normalizeDeviceName(label: string): string { - // remove text in parenthesis - return label.replace(/\([^()]*\)/g, '').trim(); + // remove IDs (that can appear in Chrome, like: "HD Pro Webcam (4df7:4eda)" + return label.replace(/(\([[0-9a-f]{4}:[0-9a-f]{4}\))/g, '').trim(); } function selectCamera() {