tinymce/tinymce — pull request #102 by geoffp (2011-11-29 19:31:16+00:00)
Title: Update script comment block detection regexes to be much more tolerant...

...of oddball comment forms to avoid breaking scripts via doubled-up CDATA comments and other such problems.

This fixes the bug:
http://www.tinymce.com/develop/bugtracker_view.php?id=2698

And has implications for the bugs:
http://www.tinymce.com/develop/bugtracker_view.php?id=2671
http://www.tinymce.com/develop/bugtracker_view.php?id=2637

The regexes in this patch have been tested with http://regexpal.com/ against the following test cases:

```javascript

//
var hi = "hello";
//

/* */
var hi = "hello";
/* */

//

var hi = "hello";

/* */
```