Skip to content

Commit

Permalink
fix(formValidation): add - as allowed character in a dataset name
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Sep 20, 2020
1 parent bc20f4a commit 0a660fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/formValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const validateDatasetName = (name: string): ValidationError => {
const invalidStart = !(/[a-z]/).test(name[0])
if (invalidStart) return ERR_INVALID_DATASETNAME_START

const invalidCharacters = !(/^(?![0-9])[a-z0-9_]+$/.test(name))
const invalidCharacters = !(/^(?![0-9])[a-z0-9_-]+$/.test(name))
if (invalidCharacters) return ERR_INVALID_DATASETNAME_CHARACTERS

const tooLong = name.length > 144
Expand Down

0 comments on commit 0a660fb

Please sign in to comment.