Changeset 1647


Ignore:
Timestamp:
May 16, 2012, 8:17:45 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #386: Qiacube/nanodrop wizard

Fixes an issue with parsing files that are using Mac-style linebreaks \r instead of \n.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/extraction_registration.jsp

    r1643 r1647  
    687687    }
    688688   
    689     var lines = event.target.result.split(/\n/);
     689    var lines = event.target.result.split(/[\n\r]+/);
    690690    var columns = lines[0].split(/ *\t */);
    691691   
     
    705705    if (nd260by230Index == -1) return;
    706706 
    707     var numImported = 0;
     707    var numImported = 0;   
    708708    for (var i = 1; i < lines.length; i++)
    709709    {
Note: See TracChangeset for help on using the changeset viewer.