🎉 init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export function isValidPaymentLink(value: string): boolean {
|
||||
if (!value.trim()) return false
|
||||
|
||||
try {
|
||||
const url = new URL(value)
|
||||
return url.protocol === 'https:' || url.protocol === 'http:'
|
||||
}
|
||||
catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user