remove redundant code

This commit is contained in:
Alphons Joseph
2024-09-05 20:45:52 +08:00
parent e001078808
commit 4a8ed32d3e
6 changed files with 4 additions and 93 deletions
@@ -1,5 +1,8 @@
<script lang="ts">
function formatUrl(inputUrl: string) {
const protocolRegex = /^(http:\/\/|https:\/\/|ftp:\/\/)/;
return protocolRegex.test(inputUrl) ? inputUrl : `https://${inputUrl}`;
}
</script>
<div class="text-xl">shortcuts tab</div>