Skip to content

Commit

Permalink
Revert "FIO-8037: fixed an issue where number component can be sent t…
Browse files Browse the repository at this point in the history
…ext thro…"
  • Loading branch information
lane-formio authored Apr 23, 2024
1 parent c934c3f commit b23b23c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 71 deletions.
3 changes: 1 addition & 2 deletions src/process/validation/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const EN_ERRORS = {
captchaTokenValidation: 'ReCAPTCHA: Token validation error',
captchaTokenNotSpecified: 'ReCAPTCHA: Token is not specified in submission',
captchaFailure: 'ReCaptcha: Response token not found',
time: '{{field}} is not a valid time.',
time: '{{field}} is not a valid time',
invalidDate: '{{field}} is not a valid date',
number: '{{field}} is not a valid number.'
};
27 changes: 0 additions & 27 deletions src/process/validation/rules/__tests__/validateNumber.test.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/process/validation/rules/clientRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { validateRequiredDayInfo } from "./validateRequiredDay";
import { validateTimeInfo } from "./validateTime";
import { validateUrlInfo } from "./validateUrl";
import { validateValuePropertyInfo } from "./validateValueProperty";
import { validateNumberInfo } from "./validateNumber";

// These are the validations that are performed in the client.
export const clientRules: ValidationRuleInfo[] = [
Expand All @@ -50,6 +49,5 @@ export const clientRules: ValidationRuleInfo[] = [
validateRequiredDayInfo,
validateTimeInfo,
validateUrlInfo,
validateValuePropertyInfo,
validateNumberInfo
validateValuePropertyInfo
];
39 changes: 0 additions & 39 deletions src/process/validation/rules/validateNumber.ts

This file was deleted.

0 comments on commit b23b23c

Please sign in to comment.