add hyperlink

This commit is contained in:
chungyau97
2023-08-01 16:20:24 +08:00
parent 7a3a5fe367
commit ef1f16b7aa
2 changed files with 22 additions and 2 deletions
+8
View File
@@ -401,3 +401,11 @@ export const getInputVariables = (paramValue) => {
}
return inputVariables
}
export const isValidURL = (url) => {
try {
return new URL(url)
} catch (err) {
return undefined
}
}