Issue 970: fix bad division slash in code
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by auldrid...@gmail.com, May 24, 2011
A large system I build and maintain uses a PHP port of Douglas Crockford's JSMin (https://github.com/rgrove/jsmin-php/ ) in a process which minifies and compiles files on the fly (then caches). This minifier is crashing on the latest (1.5.1) version (and some previous) of FullCalendar. It throws an exception for "Unterminated regular expression literal."

Having debugged what it's running in to, I found that the extra line break between lines 4001 and 4002 are causing the minifier to think that the division operator on 4002 is the start of a regular expression.

Also, in troubleshooting, I found that the Textmate editor also thinks it is the start of a regular expression.  It highlights lines 4002 though the first slash on line 4015 as a regex.

See test case: http://jaaulde.com/test_bed/FullCalendar_newline_bug/

diff: http://jaaulde.com/test_bed/FullCalendar_newline_bug/fullcalendar.js.diff
fullcalendar.js.diff
287 bytes   View   Download
Jun 1, 2011
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Summary: fix bad division slash in code
Status: Accepted
Aug 5, 2011
#2 rmueller...@gmail.com
Having the same issue using Combine.cfc (https://github.com/zefer/Combine) which uses a Java version of JSMin for Coldfusion development. 
Mar 12, 2012
#3 auldrid...@gmail.com
I have been involved in upgrading jQuery/UI/plugins in my system and this got me again in fullCalendar 1.5.3
Aug 13, 2013
Project Member #4 adamrs...@gmail.com
this was fixed at some point, but i forget when
Status: Released
Labels: -Type-Defect Type-Bug