Skip to content

Commit

Permalink
fix: relax name regex for plans and repos
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Jan 24, 2024
1 parent bedb302 commit ee6134a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion webui/src/lib/patterns.ts

This file was deleted.

5 changes: 0 additions & 5 deletions webui/src/views/AddPlanModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { useShowModal } from "../components/ModalManager";
import { Plan, RetentionPolicy } from "../../gen/ts/v1/config_pb";
import { useRecoilState } from "recoil";
import { configState, fetchConfig, updateConfig } from "../state/config";
import { nameRegex } from "../lib/patterns";
import { MinusCircleOutlined, PlusOutlined } from "@ant-design/icons";
import { URIAutocomplete } from "../components/URIAutocomplete";
import { useAlertApi } from "../components/Alerts";
Expand Down Expand Up @@ -163,10 +162,6 @@ export const AddPlanModal = ({
required: true,
message: "Please input plan name",
},
{
pattern: nameRegex,
message: "Invalid symbol",
},
{
validator: async (_, value) => {
if (template) return;
Expand Down
5 changes: 0 additions & 5 deletions webui/src/views/AddRepoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
updateConfig,
} from "../state/config";
import { useRecoilState } from "recoil";
import { nameRegex } from "../lib/patterns";
import { validateForm } from "../lib/formutil";
import { backrestService } from "../api";

Expand Down Expand Up @@ -180,10 +179,6 @@ export const AddRepoModal = ({
required: true,
message: "Please input plan name",
},
{
pattern: nameRegex,
message: "Invalid symbol",
},
{
validator: async (_, value) => {
if (template) return;
Expand Down

0 comments on commit ee6134a

Please sign in to comment.