Skip to content

Commit

Permalink
bugfix: validacao de Placa nao precisa de sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
geekcom committed Oct 27, 2020
1 parent 86eedfa commit d5a0e7b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/validator-docs/Rules/Placa.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ final class Placa extends Sanitization
{
public function validatePlaca($attribute, $placa): bool
{
$placa = $this->sanitize($placa);

$regexPlaca = '/^[A-Z][0-9]{5}$|' . // Placas dos anos 1915-1941 [ex A12345]
'^[0-9]{7}$|' . // Placas dos anos 1941-1969 [ex 1234567]
'^[A-Z]{2}[0-9]{4}$|' . // Placas dos anos 1969-1990 [ex AA1234]
Expand Down

0 comments on commit d5a0e7b

Please sign in to comment.