lib/hanami/helpers/number_formatting_helper.rb in hanami-helpers-1.3.0 vs lib/hanami/helpers/number_formatting_helper.rb in hanami-helpers-1.3.1
- old
+ new
@@ -78,20 +78,20 @@
#
# @since 0.2.0
# @api private
#
# @see Hanami::Helpers::NumberFormatter::Formatter#delimitate
- DELIMITATION_REGEX = /(\d)(?=(\d{3})+$)/
+ DELIMITATION_REGEX = /(\d)(?=(\d{3})+$)/.freeze
# Regex to guess if the number is a integer
#
# @return [Regexp] the guessing regex
#
# @since 0.2.0
# @api private
#
# @see Hanami::Helpers::NumberFormatter::Formatter#to_number
- INTEGER_REGEXP = /\A[\d]+\z/
+ INTEGER_REGEXP = /\A[\d]+\z/.freeze
# Default separator
#
# @return [String] default separator
#