fix for crash on no additional facilitators

This commit is contained in:
William Duyck 2014-07-03 15:39:12 +01:00
Родитель 36744ca5a1
Коммит 839cc62d4b
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -46,8 +46,11 @@ function sessionFaclitiators( session ) {
});
// separate out remaining facilitators (if any)
var additional = session.facilitators.split( '\n' );
additional.forEach( function( facilitator ) {
var additional = session.facilitators;
if( !additional ) {
return facilitators;
}
additional.split( '\n' ).forEach( function( facilitator ) {
var twitterRegExp = /\B@[a-z0-9_-]+/ig; // matches a twitter handle
// look for their twitter handle and separate that out from their name