Skip to content

Commit

Permalink
tweak regex for spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
katyasoup committed Oct 25, 2024
1 parent 00b61ba commit ed4cdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-connector/src/app/query/components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const SearchForm: React.FC<SearchFormProps> = ({
[setUseCase],
);

const nameRegex = "^[A-Za-z\u00C0-\u024F\u1E00-\u1EFF\ \-\'\.]+$"
const nameRegex = "^[A-Za-z\u00C0-\u024F\u1E00-\u1EFF\-\'\.\ ]+$"
const nameRuleHint = "Enter a name using only letters, hyphens, apostrophes, spaces, or periods."

async function HandleSubmit(event: React.FormEvent<HTMLFormElement>) {
Expand Down

0 comments on commit ed4cdd6

Please sign in to comment.