Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ruby/ruby
head fork: msgerbush/ruby
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 commit comment
  • 1 contributor
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/optparse.rb
2  lib/optparse.rb
@@ -1709,7 +1709,7 @@ def environment(env = File.basename($0, '.*'))
f |= Regexp::IGNORECASE if /i/ =~ o
f |= Regexp::MULTILINE if /m/ =~ o
f |= Regexp::EXTENDED if /x/ =~ o
- k = o.delete("^imx")
+ k = o.delete("imx")
end || all, f, k)

Showing you all comments on commits in this comparison.


Should not have used regex syntax here, delete takes a string. This was deleting all characters in the intersection of o and the characters [,^,i,m,x, and ].

Something went wrong with that request. Please try again.