[ruby-cvs:54421] nobu:r47273 (trunk): uri/common.rb: use negative look-ahead

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Aug 25 16:29:51 JST 2014


nobu	2014-08-25 16:29:50 +0900 (Mon, 25 Aug 2014)

  New Revision: 47273

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

  Log:
    uri/common.rb: use negative look-ahead
    
    * lib/uri/common.rb (URI.decode_www_form_component): use negative
      look-ahead instead of nested repeat operators, to get rid of
      backtrack explosion.

  Modified files:
    trunk/lib/uri/common.rb
    trunk/test/uri/test_common.rb


More information about the ruby-cvs mailing list