Created attachment 330012 [details] testcase See the testcase. The square should be green, while it renders red. Changing the ":matches(whatever, body #test)" to either ":matches(body #test)" or ":matches(whatever, #test)" makes the testcase works as expected.
<rdar://problem/36190933>
*** This bug has been marked as a duplicate of bug 206654 ***