Skip to content

Commit

Permalink
Merge pull request #6 from nurse/support-regexp-union-of-1.8
Browse files Browse the repository at this point in the history
1.8's Regexp.union doesn't expand given array

Note that Regexp.union(array) is supported since Ruby 1.8.7.
  • Loading branch information
akr committed Mar 4, 2014
2 parents 321053f + 732a79b commit 5f2cdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chkbuild/hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def ChkBuild.fetch_failure_start_pattern(target_name, secname)
pats2.concat pat
}
}
Regexp.union(pats1 + pats2)
Regexp.union(*(pats1 + pats2))
end

ChkBuild.define_failure_start_pattern(nil, nil, /timeout: output interval exceeds /)
Expand Down

0 comments on commit 5f2cdd8

Please sign in to comment.