diff --git a/lib/dry/schema/key_validator.rb b/lib/dry/schema/key_validator.rb index c2d60cd8..e89da605 100644 --- a/lib/dry/schema/key_validator.rb +++ b/lib/dry/schema/key_validator.rb @@ -9,8 +9,8 @@ module Schema class KeyValidator extend Dry::Initializer - INDEX_REGEX = /\[\d+\]/.freeze - DIGIT_REGEX = /\A\d+\z/.freeze + INDEX_REGEX = /\[\d+\]/ + DIGIT_REGEX = /\A\d+\z/ BRACKETS = "[]" # @api private