mozilla/rhino — pull request #19 by msmhrt (2011-11-01 12:48:01+00:00)
Title: Fixed issue with the regex /(?:<<)xy/ match to string "<xy" (Bug 369860)

The regex /(?:<<)xy/ should match to string "<js> 'foo <script>boo();</script>bar'.match(/(?:<script.*?>)(.*)<\/script>/)[1]
script>boo();
js> '<<xy'.match(/(?:<<)xy/)
<xy
js>

with this patch:

js> 'foo <script>boo();</script>bar'.match(/(?:<script.*?>)(.*)<\/script>/)[1]
boo();
js> '<<xy'.match(/(?:<<)xy/)
<<xy
js>