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: 6e3e1b69711d
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4980c283d0c8
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 10, 2015

  1. Copy the full SHA
    f07728d View commit details
  2. Copy the full SHA
    4980c28 View commit details
8 changes: 0 additions & 8 deletions spec/truffle/tags/core/string/rindex_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/truffle/tags/core/string/rpartition_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -146,7 +146,13 @@ public Object searchRegion(RubyRegexp regexp, RubyString string, int start, int
final Regex r = new Regex(preprocessed.getUnsafeBytes(), preprocessed.getBegin(), preprocessed.getBegin() + preprocessed.getRealSize(), regexp.getRegex().getOptions(), regexp.checkEncoding(StringNodes.getCodeRangeable(string), true));
final Matcher matcher = r.matcher(StringNodes.getByteList(string).bytes());

return regexp.matchCommon(string, false, false, matcher, start, end);
if (forward) {
// Search forward through the string.
return regexp.matchCommon(string, false, false, matcher, start, end);
} else {
// Search backward through the string.
return regexp.matchCommon(string, false, false, matcher, end, start);
}
}

}