lib/symmetric_encryption/keystore.rb in symmetric-encryption-4.3.0 vs lib/symmetric_encryption/keystore.rb in symmetric-encryption-4.3.1

- old
+ new

@@ -200,10 +200,10 @@ # Borrow from Rails, when not running Rails def self.camelize(term) string = term.to_s string = string.sub(/^[a-z\d]*/, &:capitalize) - string.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{Regexp.last_match(1)}#{Regexp.last_match(2).capitalize}" } + string.gsub!(%r{(?:_|(/))([a-z\d]*)}i) { "#{Regexp.last_match(1)}#{Regexp.last_match(2).capitalize}" } string.gsub!('/'.freeze, '::'.freeze) string end # Migrate a prior config.