Skip to content

Commit

Permalink
add oci protocol to share/UrlInput
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbohome committed Sep 24, 2024
1 parent 5c78cd0 commit 06a51e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/shared/src/components/UrlInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 06a51e4

Please sign in to comment.