The following code
<pre>
/**
- Foobar:
- {
- 'ltr' : {
- //Multiple rules with configurable operators
- 'iphone' : false
- }
- @return Boolean true lorem ipsum */
</pre>
Is minified as:
<pre>
/**
*Foobar:
*{
*'ltr':{
*//Multiple rules with configurable operators
*'iphone':false
*}
*@return Boolean true lorem ipsum
*/
</pre>
The following line specifically is where it all breaks:
<pre>
*//Multiple rules with configurable operators
</pre>
Because it is considered as the closure of the block comment " */ " and the (unexpected) start of a regex.
"Error: unterminated regular expression literal"
Source File: http://translatewiki.net/w/load.php?debug=false&lang=fi&modules=ext.liquidThreads%7Cjquery.autoEllipsis%7Cjquery.checkboxShiftClick%7Cjquery.client%7Cjquery.collapsibleTabs%7Cjquery.cookie%7Cjquery.delayedBind%7Cjquery.highlightText%7Cjquery.makeCollapsible%7Cjquery.placeholder%7Cjquery.suggestions%7Cjquery.tabIndex%7Cjquery.ui.button%7Cjquery.ui.core%7Cjquery.ui.dialog%7Cjquery.ui.draggable%7Cjquery.ui.mouse%7Cjquery.ui.position%7C
Thanks to TranslateWiki Nikerabbit for reporting this on IRC.
I'm confused though that this is production output, why are there comments in production output ?
That empty lines were insterted in place of comments (before the minifier switch by Trevor[0]) to keep track of the line number (although that only applies to the first file of all loaded modules) was one, but keeping all comments ? We might as well disable the minifier then.
Krinkle
[0] http://lists.wikimedia.org/pipermail/wikitech-l/2011-January/051308.html
Version: 1.18.x
Severity: critical