Revision: 3838 http://trac.macosforge.org/projects/ruby/changeset/3838 Author: joshua.ballanco@apple.com Date: 2010-03-20 17:01:18 -0700 (Sat, 20 Mar 2010) Log Message: ----------- Escape hash in extended regexp Modified Paths: -------------- MacRuby/trunk/ext/openssl/lib/openssl/x509-internal.rb Modified: MacRuby/trunk/ext/openssl/lib/openssl/x509-internal.rb =================================================================== --- MacRuby/trunk/ext/openssl/lib/openssl/x509-internal.rb 2010-03-20 04:53:53 UTC (rev 3837) +++ MacRuby/trunk/ext/openssl/lib/openssl/x509-internal.rb 2010-03-21 00:01:18 UTC (rev 3838) @@ -70,7 +70,7 @@ QuoteChar = /[^\\"]/ AttributeType = /[a-zA-Z][0-9a-zA-Z]*|[0-9]+(?:\.[0-9]+)*/ AttributeValue = / - (?!["#])((?:#{StringChar}|#{Pair})*)| + (?!["\#])((?:#{StringChar}|#{Pair})*)| \#(#{HexString})| "((?:#{QuoteChar}|#{Pair})*)" /x