Production release (for EOSC EXPLORE) December 2023 #24
|
@ -284,7 +284,7 @@ export class StringUtils {
|
|||
public static jsonRegex = /^[\],:{}\s]*$/;
|
||||
|
||||
public static urlPrefix(url: string): string {
|
||||
if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")) {
|
||||
if (!url || url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")) {
|
||||
return "";
|
||||
} else {
|
||||
return "//";
|
||||
|
|
Loading…
Reference in New Issue