Feature: s3-compatible storage is supported now

This commit is contained in:
萌萌哒赫萝
2023-02-20 10:25:59 +08:00
parent 7f7f400ce9
commit 176bdac993
23 changed files with 2060 additions and 155 deletions

View File

@@ -1,4 +1,4 @@
export const isUrl = (url: string): boolean => (url.startsWith('http://') || url.startsWith('https://'))
export const isUrl = (url: string): boolean => (/^https?:\/\//.test(url))
export const isUrlEncode = (url: string): boolean => {
url = url || ''
try {