mozilla/rhino — pull request #16 by msmhrt (2011-10-29 02:30:51+00:00)
Title: Fixed issue with the regex /(?:<<)xy/ match to string "<xy" (Bug 369890)

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>