Fix in Loan Product edition (#1905)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
f6edab0dd5
commit
df8c90d9e6
@@ -161,7 +161,7 @@ export class Datatables {
|
||||
public isValidUrl(urlString: string): boolean {
|
||||
try {
|
||||
const url = new URL(urlString);
|
||||
return url.protocol.startsWith("http") || url.protocol.startsWith("https");
|
||||
return url.protocol.startsWith('http') || url.protocol.startsWith('https');
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user