lib/coconductor/vendorer.rb in coconductor-0.9.2 vs lib/coconductor/vendorer.rb in coconductor-0.9.3
- old
+ new
@@ -12,11 +12,11 @@
attr_reader :family, :repo
attr_writer :ref, :raw_content
OPTIONS = %i[filename url repo replacements html source_path wiki].freeze
INVALID_CHARS = ["\u202D", "\u202C", "\u200E", "\u200F"].freeze
- UPPERCASE_WORD_REGEX = /(?:[A-Z]{3,}+ ?)+[A-Z_]+/
- UNMARKED_FIELD_REGEX = /(?<= |^)#{UPPERCASE_WORD_REGEX}(?= |\.|,)/
+ UPPERCASE_WORD_REGEX = /(?:[A-Z]{3,}+ ?)+[A-Z_]+/.freeze
+ UNMARKED_FIELD_REGEX = /(?<= |^)#{UPPERCASE_WORD_REGEX}(?= |\.|,)/.freeze
def initialize(family, options = {})
@family = family
OPTIONS.each do |option|