Issue 1422: 'Unterminated RegExp: '/ opt(\'slotMinutes\')' in fullcalendar.js
Status:  Done
Owner: ----
Closed:  Aug 2013
Reported by j...@jpgrace.com, May 29, 2012
I'm using minify to minimize and package all of my static js files.  When I add fullcalendar.js to the groupConfig.php js array, I get the following error:

'Unterminated RegExp: '/ opt(\'slotMinutes\')'

Changing break point in lines 4003-4004 from:

(event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes'))
  / opt('slotMinutes')

to:

(event.end ? ((event.end - event.start) / MINUTE_MS) :
  opt('defaultEventMinutes')) / opt('slotMinutes')

Fixes the problem.
Jan 10, 2013
#1 Zxur...@gmail.com
the latest version of fullcalendar (v1.5.4) released on 2012-09-04, after this bug was posted, still has the problem.

Please correct the math function spanning multiple lines for future release.
Aug 18, 2013
Project Member #2 adamrs...@gmail.com
almost positive this is fixed in recent versions
Status: Done