Sect0R / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minified JS not parseable by Firefox .. webkit works :: error: SyntaxError: invalid regular expression flag r" #309

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Minify commit/version: 2.1.7
PHP version: 5.4.24

I have a lot of JS and when I minify it, it breaks. It cannot be parsed by 
Firefox anymore

the error is: "SyntaxError: invalid regular expression flag r"

--- 

I dont have a minimal sample yet but ill try to produce that as well

Original issue reported on code.google.com by Pich.Dom...@gmail.com on 6 Apr 2014 at 2:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
else{obj[atn]=atv;};});};};if(obj){obj=$.extend((txt!=''?new 
String(txt):{}),obj||{});txt=(obj.text)?([obj.text||'']).concat([txt]):txt;if(tx
t)obj.text=txt;txt='';};var 
out=obj||txt;if(extended){if(txt)out={};txt=out.text||txt||'';if(txt)out.text=tx
t;if(!simple)out=myArr(out);};return out;};var jsVar=function(s){return 
String(s||'').replace(/-/g,"_");};function isNum(s){var 
regexp=/^((-)?([0-9]+)(([\.\,]{0,1})([0-9]+))?$)/return(typeof 
s=="number")||regexp.test(String((s&&typeof 
s=="string")?jQuery.trim(s):''));};var 
myArr=function(o){if(!$.isArray(o))o=[o];o.length=o.length;return o;};if(typeof 
xml=='string')xml=$.text2xml(xml);if(!xml.nodeType)return 
null;if(xml.nodeType==3||xml.nodeType==4)return xml.nodeValue;var 
root=(xml.nodeType==9)?xml.documentElement:xml;var 
out=parseXML(root,true);xml=null;root=null;return 
out;},text2xml:function(str){return $.parseXML(str);}});})(jQuery);;var 
Configuration={"locations":{"muc":{"details":{"name":"Munich","gps":{"latitude":
48.353559,"longitude":11.782019}},"rooms":{"VC-MUCDC4OskarMaria@domain.com":{"na
me":"KarlValentin","seats":20},"MUC-DC1ThereseGiehse@domain.com":{"name":"herese
 Giese (DC1)","seats":20},"MUC-DC2GabrieleMuente@domain.com":{"name":"Gabriele 
Münter (DC2)","seats":20},"MUC-DC3Franzvon@domain.com":{"name":"Franz von 
Lenbach (DC3)","seats":20},"VC-MUCDC4OskarMaria@domain.com":{"name":"Oskar 
Maria Graf (DC4)","seats":20},"MUC-FranzMarc@domain.com":{"name":"Franz 
Marc","seats":20},"MUC-SeppMoser@domain.com":{"name":"Sepp 
Moser","seats":20},"MUC-KarlValentin@domain.com":{"name":"Karl 
Valentin","seats":20},"MUC-CarlOrff@domain.com":{"name":"Carl 
Orff","seats":20},"VC-MUCLieslKarlstadt@domain.com":{"name":"Liesl Karlstadt 
(VC)","seats":20}}},"cgn":{"details":{"name":"Cologne","gps":{"latitude":50.9413
03,"longitude":6.958166}},"rooms":{"CGNAgnes@domain.com":{"name":"Agnes","seats"
:5,"has":["Screen","WiFi","Whiteboard"]},"CGNAlderaan@domain.com":{"name":"Alder
aan","preferForClients":true,"seats":3,"has":["Whiteboard","WiFi","Phone"]},"CGN
Dagobah@domain.com":{"name":"Dagobah","preferForClients":true,"seats":7,"has":["
Whiteboard","WiFi","Phone"]},"CGNEigelstein@domain.com":{"name":"Eigelstein","se
ats":7,"has":["Whiteboard","WiFi","Phone","Kicker"]},"CGNEndor@domain.com":{"nam
e":"Endor","preferForClients":true,"seats":6,"has":["Screen","mobile 
Video","WiFi","Phone"]},"CGNHoth@domain.com":{"name":"Hoth","preferForClients":t
rue,"seats":6,"has":["Screen","WiFi","Phone"]},"CGNKorriban@domain.com":{"name":
"Korriban","preferForClients":true,"seats":7,"has":["Whiteboard","WiFi","Phone"]
},"CGNKwartierLataeng@domain.com":{"name":"Kwartier 
Lataeng","seats":6,"has":["Whiteboard","WiFi","Phone"]},"CGNMediapark@domain.com
":{"name":"Mediapark","seats":16,"has":["Phone","Screen","Video","WiFi"]},"CGNMo
sEisley@domain.com":{"name":"Mos 
Eisley","preferForClients":true,"seats":40,"has":["projector 
screen","wifi","mobile 
video"]},"CGNSeverin@domain.com":{"name":"Severin","seats":6,"has":["Phone","Scr
een"]},"CGNYavin@domain.com":{"name":"Yavin","preferForClients":true,"seats":3,"
has":["Phone","Video","WiFi","Whiteboard"]}}}},"version":"1.1","url":"./proxy.ph
p?TARGET=https://webmail.domain.com/ews/exchange.asmx&DOMAIN=domain","startWithQ
uickbook":true,"showQuickbookButton":true,"minTime":7,"maxTime":20,"roomColors":
["#1D1D1D","#DE2728","#21ADDD"],"minColumnWidth":78,"defaultNumberOfPersons":3,"
defaultMeetingTopic":"Quickbooked","defaultMeetingOffsetMinutes":10,"defaultMeet
ingDuration":"00:30"};;function RGBColor(color_string)

Original comment by Pich.Dom...@gmail.com on 6 Apr 2014 at 2:13

GoogleCodeExporter commented 9 years ago
Use a pastebin. I need the unminified source.

Original comment by mrclay....@gmail.com on 7 Apr 2014 at 2:50