lib/lite/validators/sedol_validator.rb in lite-validators-1.1.1 vs lib/lite/validators/sedol_validator.rb in lite-validators-1.1.2
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
class SedolValidator < BaseValidator
- REGEXP ||= /^([A-Z0-9]{6})(\d{1})$/.freeze
- WEIGHTS ||= [
+ REGEXP = /^([A-Z0-9]{6})(\d{1})$/.freeze
+ WEIGHTS = [
1, 3, 1, 7, 3, 9, 1
].freeze
private