Show
Ignore:
Timestamp:
07/28/08 18:47:02 (4 months ago)
Author:
mattn
Message:

Oooooooops!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/TracUtils.js

    r16752 r16753  
    377377                                        }); 
    378378                                        $('//*[@id="dirlist"]//span[@class="author"]').each(function () { 
    379                                                 var author = $(this).text().match(/^([^:]+):/); 
    380                                                 if (author.length > 0) authors.push([this, author[1]]); 
     379                                                authors.push([this, $(this).text().match(/^([^:]+):/)]); 
    381380                                        }); 
    382381                                        break; 
    383382                                case 'timeline': 
    384383                                        $('//*[@id="content"]//dt/a').each(function () { 
    385                                                 authors.push([this, this.lastChild.nodeValue.match(/by\s+(.+)$/)[1]]); 
     384                                                var author = this.lastChild.nodeValue.match(/by\s+(.+)$/); 
     385                                                if (author.length > 0) authors.push([this, author[1]]); 
    386386                                        }); 
    387387                                        break;