We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde90c5 commit 54b1474Copy full SHA for 54b1474
frontend/pages/index.vue
@@ -248,6 +248,10 @@ const formData = ref({
248
const config = useRuntimeConfig()
249
const accessUrl = computed(() => {
250
if (!result.value) return ''
251
+ // if result.value is not a valid uuid, return an empty string
252
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(result.value)) {
253
+ return result.value
254
+ }
255
const baseUrl = window.location.origin
256
return `${baseUrl}/access/${result.value}`
257
})
0 commit comments