mirror of
https://github.com/we-promise/sure.git
synced 2026-04-16 02:24:08 +00:00
* Addressable RegExp Denial of Service * fix: preserve Generic investment subtypes in account creation form The .compact call in Investment.subtypes_grouped_for_select removed all nil values from the region order array, which inadvertently excluded Generic subtypes (region: nil) from the dropdown for all users regardless of currency setting. Replace .compact with conditional logic that preserves nil in the region order while still handling the user_region placement. Closes #1446 * Breakage on `main` reverted * style: fix SpaceInsideArrayLiteralBrackets lint offense Add spaces inside array literal brackets to match project Rubocop rules. --------- Co-authored-by: Juan José Mata <jjmata@jjmata.com> Co-authored-by: khanhkhanhlele <namkhanh2172@gmail.com>