@@ -212,8 +212,6 @@ def yaml_parsing_error_msg(yaml, path = nil)
212212
213213 #-----------------------------------------------------------------------#
214214
215- private
216-
217215 # @!group Array Sorting
218216
219217 # Sorts an array using another one as a sort hint. All the values of the
@@ -291,21 +289,21 @@ def sorting_string(value)
291289 /0x[0-9a-fA-F]+/ , # base 16 int
292290 /[-+]?(\. [0-9]+|[0-9]+(\. [0-9]*)?)([eE][-+]?[0-9]+)?/ , # float
293291 /[-+]?\. (inf|Inf|INF)/ , # infinity
294- /\. (nan|NaN|NAN)/ , # NaN
292+ /\. (nan|NaN|NAN)/ # NaN
295293 )
296294 private_constant :RESOLVED_TAGS
297295
298296 INDICATOR_START_CHARS = %w( - ? : , [ ] { } # & * ! | > ' " % @ ` ) . freeze
299- INDICATOR_START = /\A #{ Regexp . union ( INDICATOR_START_CHARS ) } /
297+ INDICATOR_START = /\A #{ Regexp . union ( INDICATOR_START_CHARS ) } / . freeze
300298 private_constant :INDICATOR_START_CHARS , :INDICATOR_START
301299
302- RESOLVED_TAGS_PATTERN = /\A #{ Regexp . union ( RESOLVED_TAGS ) } \z /
300+ RESOLVED_TAGS_PATTERN = /\A #{ Regexp . union ( RESOLVED_TAGS ) } \z / . freeze
303301 private_constant :RESOLVED_TAGS_PATTERN
304302
305303 VALID_PLAIN_SCALAR_STRING = %r{\A
306304 [\w &&[^#{ INDICATOR_START_CHARS } ]] # valid first character
307305 [\w /\ \( \) ~<>=\. :`,-]* # all characters allowed after the first one
308- \z }ox
306+ \z }ox . freeze
309307 private_constant :VALID_PLAIN_SCALAR_STRING
310308
311309 def process_string ( string )
0 commit comments