Skip to content

Commit 219f62d

Browse files
committedJul 31, 2018
forgot to set match data pattern
1 parent a8df07d commit 219f62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/jruby/RubyRegexp.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ public final int search(ThreadContext context, RubyString str, int pos, boolean
12701270
// matchData.infectBy(str);
12711271
//}
12721272
}
1273-
1273+
matchData.regexp = this;
12741274
matchData.infectBy(this);
12751275
setBackRefInternal(context, holder, matchData);
12761276
return result;

0 commit comments

Comments
 (0)
Please sign in to comment.