From 06a51e49b92d85ac0fa5332a31edf45c7a8d073e Mon Sep 17 00:00:00 2001 From: lingbo Date: Mon, 23 Sep 2024 22:46:05 +0800 Subject: [PATCH] add oci protocol to share/UrlInput --- packages/shared/src/components/UrlInput/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/components/UrlInput/index.tsx b/packages/shared/src/components/UrlInput/index.tsx index 6a4096f445d..dbf6871ee93 100644 --- a/packages/shared/src/components/UrlInput/index.tsx +++ b/packages/shared/src/components/UrlInput/index.tsx @@ -53,10 +53,11 @@ function UrlInput({ isSubmitting, }: Props): JSX.Element { const { workspace = '' } = useParams(); - const protocolReg = /^(http|https|s3):\/\//; + const protocolReg = /^(http|https|s3|oci):\/\//; const protocols = [ { label: 'http://', value: 'http' }, { label: 'https://', value: 'https' }, + { label: 'oci://', value: 'oci' }, // { label: 's3://', value: 's3' }, ]; const initUrlInputValue = useMemo(() => {