[ruby-cvs:56457] nobu:r49307 (trunk): yaml_tree.rb: fix anchor

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Jan 17 23:59:20 JST 2015


nobu	2015-01-17 23:59:18 +0900 (Sat, 17 Jan 2015)

  New Revision: 49307

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49307

  Log:
    yaml_tree.rb: fix anchor
    
    * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String):
      anchors like `\Z` are not valid inside character class.  use
      negative-lookahead instead.
      Fixes: https://github.com/tenderlove/psych/issues/221

  Modified files:
    trunk/ChangeLog
    trunk/ext/psych/lib/psych/visitors/yaml_tree.rb
    trunk/test/psych/test_string.rb


More information about the ruby-cvs mailing list