Skip to content

Commit

Permalink
fix: remove 6 char from valid siret
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru committed Nov 7, 2024
1 parent 826722c commit a8485f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/validators/siret_format_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def validate_each(record, attribute, value)

def format_is_valid(value)
case value&.length
when 6
value.match?(/^[0-9A-Z]\d{5}$/)
# when 6
# value.match?(/^[0-9A-Z]\d{5}$/)
when 9
value.match?(/^[0-9A-Z]\d{8}$/)
when 14
Expand Down

0 comments on commit a8485f1

Please sign in to comment.