Skip to content

Commit

Permalink
fix(FOROME-1485): add validation rule (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniySobolev authored Aug 24, 2022
1 parent abf43bd commit 71c8ced
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { DecisionTreesMenuDataCy } from '@data-testid'
import { showToast } from '@utils/notifications/showToast'
import {
noFirstNumberPattern,
noSpacesPattern,
noSymbolPattern,
} from '@utils/validation/validationPatterns'

Expand Down Expand Up @@ -145,6 +146,7 @@ export const CreateDatasetDialog = observer(
if (
noSymbolPattern.test(name) ||
noFirstNumberPattern.test(name) ||
noSpacesPattern.test(name) ||
name.length > 250
) {
setError(DatasetCreationErrorsEnum.IncorrectName)
Expand Down

0 comments on commit 71c8ced

Please sign in to comment.