Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
String#start_with? returns false when using an empty string #1923
On MRI/Rubinius the following returns true:
On JRuby 1.7.12 however this returns false. I've created a corresponding RubySpec pull request to at least add a spec for this, which can be found here: https://github.com/rubyspec/rubyspec/pull/285.
Currently some of my code relies on this behavior, though one can quite easily work around it (at least for the time being).