@fto-consult/expo-ui 7.17.2 → 7.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -321,7 +321,7 @@ export default class Field extends AppComponent {
|
|
321
321
|
if(!isValidPhoneNumber(value)){
|
322
322
|
return "Merci d'entrer un numéro de téléphone valide";
|
323
323
|
}
|
324
|
-
} else if(((this.props.allowWhiteSpaces === false) || ((
|
324
|
+
} else if(((this.props.allowWhiteSpaces === false) || ((this.type ==='id' || this.type =='piece') && this.props.allowWhiteSpaces !== true))){
|
325
325
|
if((value.contains(" ") || !isValidDataFileName(value.replaceAll("@","").replaceAll(".","")))){
|
326
326
|
return "Veuillez renseigner une valeur ne contenant pas d'espace ou de caractère accentués";
|
327
327
|
}
|