Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validação de strings #92

Closed
asfernandes opened this issue Feb 9, 2024 · 1 comment
Closed

Validação de strings #92

asfernandes opened this issue Feb 9, 2024 · 1 comment

Comments

@asfernandes
Copy link
Contributor

Nas validações de quantidade de caracteres, podemos assumir que todas as strings serão ascii (sem caracteres especiais)?

@zanfranceschi
Copy link
Owner

Sim. Os caracteres possíveis são A-Z, a-z, 0-9

def randomDescricao() = Random.alphanumeric.take(10).mkString

https://dotty.epfl.ch/api/scala/util/Random.html#alphanumeric-0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants