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

Commits on Nov 2, 2016

  1. Copy the full SHA
    49bd27d View commit details
  2. Copy the full SHA
    b0abc53 View commit details
Showing with 4 additions and 1 deletion.
  1. +0 −1 core/src/main/java/org/jruby/lexer/yacc/StringTerm.java
  2. +4 −0 spec/ruby/core/regexp/source_spec.rb
1 change: 0 additions & 1 deletion core/src/main/java/org/jruby/lexer/yacc/StringTerm.java
Original file line number Diff line number Diff line change
@@ -342,7 +342,6 @@ public int parseStringIntoBuffer(RubyLexer lexer, ByteList buffer, Encoding enc[

if (regexp) {
if (c == end && !simple_re_meta(c)) {
buffer.append('\\');
buffer.append(c);
continue;
}
4 changes: 4 additions & 0 deletions spec/ruby/core/regexp/source_spec.rb
Original file line number Diff line number Diff line change
@@ -9,6 +9,10 @@
/x(.)xz/.source.should == "x(.)xz"
end

it "will remove escape characters" do
/foo\/bar/.source.should == "foo/bar"
end

not_supported_on :opal do
it "has US-ASCII encoding when created from an ASCII-only \\u{} literal" do
re = /[\u{20}-\u{7E}]/