Skip to content

Commit

Permalink
add oci protocol to share/UrlInput (#4307)
Browse files Browse the repository at this point in the history
Signed-off-by: lingbo <[email protected]>
  • Loading branch information
lingbohome authored Sep 25, 2024
1 parent 653794f commit aad112a
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 aad112a

Please sign in to comment.