Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ae1f8b28382c
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bc7aa50d0344
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Feb 10, 2017

  1. Copy the full SHA
    9eb32cb View commit details
  2. Copy the full SHA
    62a1e03 View commit details
  3. Copy the full SHA
    bc7aa50 View commit details
5 changes: 4 additions & 1 deletion core/src/main/java/org/jruby/RubyRegexp.java
Original file line number Diff line number Diff line change
@@ -1302,7 +1302,10 @@ public IRubyObject casefold_p(ThreadContext context) {
@JRubyMethod
public IRubyObject source() {
check();
return RubyString.newStringShared(getRuntime(), str).infectBy(this);
Encoding enc = (pattern == null) ? str.getEncoding() : pattern.getEncoding();
ByteList newStr = str.dup();
newStr.setEncoding(enc);
return RubyString.newString(getRuntime(), newStr).infectBy(this);
}

final int length() {
3 changes: 0 additions & 3 deletions spec/tags/ruby/core/regexp/compile_tags.txt

This file was deleted.

3 changes: 0 additions & 3 deletions spec/tags/ruby/core/regexp/new_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/ruby/core/regexp/source_tags.txt

This file was deleted.