Skip to content

Commit

Permalink
fix: Add pattern validation to route name (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Oct 7, 2023
1 parent a6ba58a commit c7f1ac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/route/components/RouteForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const RouteForm: React.FC = forwardRef((props, ref) => {
rules={[
{
required: true,
pattern: /^[a-z0-9][a-z0-9.-]*$/,
message: t('route.routeForm.routeNameRequired'),
},
]}
Expand Down

0 comments on commit c7f1ac2

Please sign in to comment.