Skip to content

Commit f3a7ba0

Browse files
committed
disable text validation
1 parent 2c18129 commit f3a7ba0

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

client/src/utils/validation.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,22 @@ import { reportError } from './report.js'
2525
* @param {string} input - The input string to validate
2626
* @returns {boolean} - If the input is allowed or not
2727
*/
28-
export function validateText (input) {
29-
if (!input) {
30-
return true
31-
}
28+
export function validateText () {
29+
return true
3230

33-
const allowedPattern = /^[a-zA-ZæøåÆØÅ0-9 .,?!\-_():+"%/*]+$/
31+
// if (!input) {
32+
// return true
33+
// }
3434

35-
const isTextValid = allowedPattern.test(input)
35+
// const allowedPattern = /^[a-zA-ZæøåÆØÅ0-9 .,?!\-_():+"%/*]+$/
3636

37-
if (!isTextValid) {
38-
addFeedbackToStore(FEEDBACK_TYPES.ERROR, FEEDBACK_CODES.FORBIDDEN, FEEDBACK_MESSAGES.INVALID_TEXT)
39-
}
37+
// const isTextValid = allowedPattern.test(input)
38+
39+
// if (!isTextValid) {
40+
// addFeedbackToStore(FEEDBACK_TYPES.ERROR, FEEDBACK_CODES.FORBIDDEN, FEEDBACK_MESSAGES.INVALID_TEXT)
41+
// }
4042

41-
return isTextValid
43+
// return isTextValid
4244
}
4345

4446
/**

0 commit comments

Comments
 (0)