Skip to content

Commit 6da15ac

Browse files
committed
fix(orbility/parking_user_sync): filter out bad number plates
1 parent ce80843 commit 6da15ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/orbility/parking_user_sync.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Orbility::ParkingUserSync < PlaceOS::Driver
146146
if unmapped = user.unmapped
147147
license_plates = unmapped[car_license_ext]?.try(&.as_a.map(&.as_s)) || PLATES_DEFAULT
148148
end
149-
license_plates
149+
license_plates.reject! { |plate| plate.blank? || plate.size > 12 }
150150
end
151151

152152
getter cached_security_ids : Hash(String, String | Int64) = {} of String => String | Int64

0 commit comments

Comments
 (0)