My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1422: 'Unterminated RegExp: '/ opt(\'slotMinutes\')' in fullcalendar.js
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
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
Sign in to add a comment

Powered by Google Project Hosting