diff --git a/src/CONST.js b/src/CONST.js index 39d190788b41..2fedd7ce0ce9 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -1134,7 +1134,7 @@ const CONST = { REGEX: { SPECIAL_CHARS_WITHOUT_NEWLINE: /((?!\n)[()-\s\t])/g, DIGITS_AND_PLUS: /^\+?[0-9]*$/, - ALPHABETIC_CHARS_WITH_NUMBER: /^[a-zA-ZÀ-ÿ0-9 ]*$/, + ALPHABETIC_AND_LATIN_CHARS: /^[a-zA-ZÀ-ÿ ]*$/, POSITIVE_INTEGER: /^\d+$/, PO_BOX: /\b[P|p]?(OST|ost)?\.?\s*[O|o|0]?(ffice|FFICE)?\.?\s*[B|b][O|o|0]?[X|x]?\.?\s+[#]?(\d+)\b/, ANY_VALUE: /^.+$/, diff --git a/src/languages/en.js b/src/languages/en.js index d7d34fa94580..19dbc9186da3 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -605,7 +605,7 @@ export default { growlMessageOnSave: 'Your debit card was successfully added', expensifyPassword: 'Expensify password', error: { - invalidName: 'Name can only include latin letters and numbers.', + invalidName: 'Name can only include letters.', addressZipCode: 'Please enter a valid zip code', debitCardNumber: 'Please enter a valid debit card number', expirationDate: 'Please select a valid expiration date', @@ -784,7 +784,7 @@ export default { error: { dateShouldBeBefore: ({dateString}) => `Date should be before ${dateString}.`, dateShouldBeAfter: ({dateString}) => `Date should be after ${dateString}.`, - hasInvalidCharacter: 'Name can only include latin letters and numbers.', + hasInvalidCharacter: 'Name can only include letters.', incorrectZipFormat: ({zipFormat}) => `Incorrect zip code format.${zipFormat ? ` Acceptable format: ${zipFormat}` : ''}`, }, }, diff --git a/src/languages/es.js b/src/languages/es.js index c6d6f2f2b67a..a631141a6caa 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -606,7 +606,7 @@ export default { growlMessageOnSave: 'Su tarteja de débito se agregó correctamente', expensifyPassword: 'Contraseña de Expensify', error: { - invalidName: 'El nombre solo puede contener números y caracteres latinos.', + invalidName: 'El nombre sólo puede incluir letras.', addressZipCode: 'Por favor, introduce un código postal válido', debitCardNumber: 'Por favor, introduce un número de tarjeta de débito válido', expirationDate: 'Por favor, selecciona una fecha de vencimiento válida', @@ -787,7 +787,7 @@ export default { dateShouldBeBefore: ({dateString}) => `La fecha debe ser anterior a ${dateString}.`, dateShouldBeAfter: ({dateString}) => `La fecha debe ser posterior a ${dateString}.`, incorrectZipFormat: ({zipFormat}) => `Formato de código postal incorrecto.${zipFormat ? ` Formato aceptable: ${zipFormat}` : ''}`, - hasInvalidCharacter: 'El nombre solo puede contener números y caracteres latinos.', + hasInvalidCharacter: 'El nombre sólo puede incluir letras.', }, }, resendValidationForm: { diff --git a/src/libs/ValidationUtils.js b/src/libs/ValidationUtils.js index 0cf1a2f51811..180cadef451e 100644 --- a/src/libs/ValidationUtils.js +++ b/src/libs/ValidationUtils.js @@ -353,7 +353,7 @@ function isValidDisplayName(name) { * @returns {Boolean} */ function isValidLegalName(name) { - return CONST.REGEX.ALPHABETIC_CHARS_WITH_NUMBER.test(name); + return CONST.REGEX.ALPHABETIC_AND_LATIN_CHARS.test(name); } /**