mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
adjust service marketplace button for installation source relevance (#1571)
* adjust service marketplace button for installation source relevance * cleanup * show marketplace name instead of url; cleanup from PR feedback * fix spacing * further cleanup
This commit is contained in:
@@ -36,3 +36,16 @@ export function debounce(delay: number = 300): MethodDecorator {
|
||||
return descriptor
|
||||
}
|
||||
}
|
||||
|
||||
export function removeTrailingSlash(word: string): string {
|
||||
return word.replace(/\/+$/, '')
|
||||
}
|
||||
|
||||
export function isValidHttpUrl(string: string): boolean {
|
||||
try {
|
||||
const _ = new URL(string)
|
||||
return true
|
||||
} catch (_) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user