Page 1 of 1

Modification system breaks JavaScript code

Posted: Thu Aug 16, 2018 8:40 pm
by alexmitev
Hello,
I just stumbled upon this very annoying and serious bug. One of my modifications has a lot of JavaScript/JQuery code, in it I have sth. like

Code: Select all

$.ajax({
...
}); 
notice the semicolon at the end of the ajax() call. When I reload the modifications, my modified file however contains

Code: Select all

$.ajax({
...
}
seems OC has somehow removed not only the semicolon, but also the closing bracket, which of course breaks all my JS code!
I noticed that if I omit the trailing semicolon, OC doesn't remove the closing bracket. What is the reason for this annoying behaviour?
I'm using OC Version 2.0.3.1

Regards,
Alex