Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/RubyRegexp.java
Original file line number Diff line number Diff line change
@@ -1139,6 +1139,7 @@ public static IRubyObject union(ThreadContext context, IRubyObject recv, IRubyOb
if (a.isNil()) return newRegexp(runtime, quote(context, recv, args).getByteList());

RubyArray aa = (RubyArray)a;
if (aa.size() == 0) return newRegexp(runtime, ByteList.create("(?!)"));
int len = aa.getLength();
realArgs = new IRubyObject[len];
for(int i = 0; i<len; i++) {

0 comments on commit 2f56d95

Please sign in to comment.